profiler

Micah Altman micah at flobb4.csd.sgi.com
Wed Dec 12 03:23:33 AEST 1990


In <1990Dec10.182523.9827 at odin.corp.sgi.com> bennett at sgi.com (Jim Bennett) writes:

>In article <1990Dec5.005445.21368 at jarvis.csri.toronto.edu> corkum at csri.toronto.edu (Brent Thomas Corkum) writes:
>>A quick question, is there a profiler available for a C program
>>running on a 4D/25. The profiler being a transparent process, meaning
>>I don't want to place function calls within my program, that will tell me
>>the amount of cpu time spent in each function within a program.
>>
>>If there isn't, what do programmers use to tackle such a question?
>>
>>Brent Corkum
>>corkum at boulder.civ.toronto.edu

>See pixie(1).  It fixes up your binary with basic block counters.

>Ther other profiler is profil(2).  It samples your PC at 10 millisecond
>intervals, but you have to put the call to profil explicitly in your
>program to enable the PC sampling.

You can get automatic pc-sampling of your code by compiling with 
-p ( see man page on prof(1), subject heading "Using pc-sampling" ).
This gives you a routine by routine ( not a basic block count ) pc-sampled
profile without having to insert any profil(2) calls.

- Micah Altman
"Computational Juggler"



More information about the Comp.sys.sgi mailing list