[Openmcl-devel] Profiling Parenscript compilation

Hans Hübner hans at huebner.org
Thu Dec 4 02:56:06 PST 2008


Scott,

I committed a fix to the deterministic profiler so that it should now
work on Darwin, too.  Please give it a try:

(PROF:PROFILE foo) ; profile function foo
(PROF:PROFILE "FOO") ; profile package "FOO"

(PROF:REPORT) ; write out profiling report
(PROF:RESET) ; reset profiling

(PROF:UNPROFILE foo) ; unprofile function foo
(PROF:UNPROFILE-ALL) ; unprofile everything

Note that the profiler must be initialized before any threads are
started as it uses thread-specific data.  I load it in my
ccl-init.lisp like so:

(require 'asdf)
(push (merge-pathnames #P"tools/advice-profiler/"
(ccl::ccl-directory)) asdf:*central-registry*)
(asdf:oos 'asdf:load-op :profiler)

Let me know if you have any issues or questions.

-Hans



More information about the Openmcl-devel mailing list