Opened 11 years ago

#847 new task

profiling in Cocoa-based IDE

Reported by: rme Owned by: rme
Priority: normal Milestone:
Component: IDE Version: trunk
Keywords: Cc: svspire


Implement a way to make it fairly straightforward to use some sort of profiling tool with the Cocoa-based IDE.

CCL has provided ways to use Shark with varying degrees of success, though Shark has been a bit of a moving target. Currently, it's necessary to save a heap image in a special way (as a shared library) in order for Shark to identify lisp function names. The IDE's custom of prepending a lisp kernel binary to the heap image interferes with this, so the IDE build process needs to be changed to leave the kernel and heap image separate. (And maybe the lisp kernel needs to be changed to know how to find the image file, too.)

In Xcode 4, Shark has apparently been replaced by Instruments, so that might affect what we need to do.

Another possible tool might be dtrace, but this approach would require instrumenting functions with probes. See, for example,

This (dtrace) could be independently interesting; perhaps compiling a function with certain optimization settings like (DEBUG 2) or something would insert the probes.

Change History (0)

Note: See TracTickets for help on using tickets.