>From Apple's guide to improving code locality [1], it's possible to get gprof 
>to output an 

--
Ordering based on a “closest is best” analysis of the profiling call graph. 
Calls that call each other frequently are placed close together.
--

I'm having trouble with gprof on Mac OSX and I wonder how functions that call 
each other frequently can be tracked with DTrace. 

Any suggestions?

There are also other orderings, e.g.

- Routines sorted by the number of calls made to each routine, largest numbers 
first.

- Routines sorted by the order in which they are called.

- Routines sorted by the amount of CPU time spent, largest times first. 

but these are easy to take care of with DTrace.

        Thanks in advance, Joel

[1] 
http://developer.apple.com/mac/library/documentation/Performance/Conceptual/CodeFootprint/Articles/ImprovingLocality.html#//apple_ref/doc/uid/20001862-103710

---
http://linkedin.com/in/joelreymont

_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to