Metrowerks profiler CW8.3, MacOSX

Metrowerks profiler CW8.3, MacOSX

Post by Peter Paul » Tue, 14 Sep 2004 23:37:14


Hello all,

With CodeWarrior 8.3, IDE 5.1.1 build 1108, I'm trying to use profiling
for a project of type: 'Bundle Package'.

I've set the preference PPC CodeGen Mach-0, Profiler to 'Metrowerks'.

I've included <Profiler.h> from the system access path {Compiler}/MacOS
Support/Profiler/Profiler Headers:

#if __profile__
#include <Profiler.h>
#endif // __profile__

In my Bundle Package entry point I've included the following.

int32 XTActivateCallback(xtactivaterec *cbparam)
{
LogManager& logManager = LogManager::getSystemLogManager();
logManager.registerWriter(Console::getSystemConsole());
logManager << "Cougar loading..." << Writer::flush;

#if __profile__
ProfilerInit(collectDetailed, bestTimeBase, 5000, 500);
#endif

int32 status = Cougar::xtactivate_cb(cbparam);

#if __profile__
ProfilerDump("\pCougar.prof");
ProfilerTerm();
#endif

return(status);
}

This compiles okay.

I've added the static library 'Profiler Carbon.Lib' from the path
'{Compiler}/MacOS Support/Profiler/Profiler PPC'

Now, when I try to link I get an error message:
Error : 'rofiler Carbon.Lib

In the past I have been able to use this under MacOS 9.

Can somebody help me get this working.

With kind regard,
Peter Paulus
 
 
 

Metrowerks profiler CW8.3, MacOSX

Post by Peter Paul » Wed, 15 Sep 2004 19:04:03

Hello Ron,

Would I to use gproff in this situation?

If so how?

With kind regards,
Peter Paulus

 
 
 

Metrowerks profiler CW8.3, MacOSX

Post by Sean McBri » Fri, 17 Sep 2004 02:29:02

In article < XXXX@XXXXX.COM >,



In particular, Shark is very good.
 
 
 

Metrowerks profiler CW8.3, MacOSX

Post by Peter Paul » Fri, 17 Sep 2004 17:56:36

ello Ron, Sean,

I've tried to install the CHUD_4.0.0b8 package from Apple. However I run
into some installation problem just after the destination disk is
selected; I have only 1 disk in my system.

It says:
You cannot install this software on this disk. Could not find specified
message index for 17.

At the moment I lack the time to sort this out. Also I lack the time to
convert my forest of (interlinked) projects to MacOS9. Earlier this year
I've been on CodeWarrior 9.2 but in the end went back to CodeWarrior
8. One of the reasons for this is that the library we use from Quark is
CodeWarrior 8. It is still unsure to me if problems were due to a
mismatch in their CW8-code and my CW9-code for the plugin were developing.

I would be much obliged if you could send me your CodeWarrior 8 profiler
for Mach-O.

With kind regards,
Peter Paulus

MW Ron wrote:

 
 
 

Metrowerks profiler CW8.3, MacOSX

Post by Sean McBri » Sat, 18 Sep 2004 01:40:20

In article <41495478$0$3891$ XXXX@XXXXX.COM >,



Well, it is beta, maybe its still buggy. Try the last non-beta version.
Which XCode tools are you using? 1.5 comes with a version of Shark,
IIRC.
 
 
 

Metrowerks profiler CW8.3, MacOSX

Post by Chris Hans » Fri, 24 Sep 2004 14:56:47

On 2004-09-13 07:37:14 -0700, Peter Paulus < XXXX@XXXXX.COM > said:

Have you tried profiling your code with Shark?

-- Chris

--
Chris Hanson < XXXX@XXXXX.COM >
http://www.yqcomputer.com/