Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / June 2004



Tip: Looking for answers? Try searching our database.

MW Profiler question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
C.R. Osterwald - 29 Jun 2004 02:40 GMT
I am trying to profile a CFM Carbon app with CW 9.2, but I am
apparently doing something wrong.  Using Profiler Carbon.Lib and Mac
OSX 10.2.8, main looks like this:

#include <profiler.h>
int main (void)
 {
   OSErr    error;
   
   initialize();
   
   error = ProfilerInit(collectDetailed, bestTimeBase, 20, 5);
   if (error != noErr)
     show_error(error);

   ProfilerSetStatus(true);
   
   RunApplicationEventLoop();
   
   error = ProfilerDump("\pappprofile");
   if (error != noErr)
     show_error(error);

   ProfilerTerm();
   
   return 0;
 }

The app compiles and links, I have the Profiler Information checkbox in
the PPC Processor pane on, but a profile dump file is never created (at
least Find can't locate it).  Am I using the correct library, or is
there something else I've overlooked?

-=-=-=-=-
MW Ron - 29 Jun 2004 17:27 GMT
>I am trying to profile a CFM Carbon app with CW 9.2, but I am
>apparently doing something wrong.  Using Profiler Carbon.Lib and Mac
[quoted text clipped - 28 lines]
>least Find can't locate it).  Am I using the correct library, or is
>there something else I've overlooked?

Yes add the profilerCarbon.lib  library.

There is a Carbon Profiler example in the CodeWarrior Examples/Mac OS
Examples  folder   you might want to look at that.

Ron

Signature

 Metrowerks, one of the world¹s top 100 companies and influencers
    in the software development industry. - SD Times  May 2004
              http://www.sdtimes.com/2004sdt100.htm
     
                 Metrowerks, maker of CodeWarrior
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

C.R. Osterwald - 29 Jun 2004 20:42 GMT
> >The app compiles and links, I have the Profiler Information checkbox in
> >the PPC Processor pane on, but a profile dump file is never created (at
[quoted text clipped - 5 lines]
> There is a Carbon Profiler example in the CodeWarrior Examples/Mac OS
> Examples  folder   you might want to look at that.

Thanks Ron, I'll give that a try.

-=-=-=-=-
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.