Statistical profiler reports no data on Mac OS X x86-64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Incomplete
|
Medium
|
Unassigned |
Bug Description
When attempting to use the statistical profiler on SBCL 1.0.37 x86-64,
under Mac OS X 10.6.3, the use of the WITH-PROFILING macro does
not print any profiling results:
> (require 'sb-sprof)
> (sb-sprof:
> (sb-sprof:
WARNING: No sampling progress; possibly a profiler bug.
Number of samples: 0
Sample interval: 0.01 seconds
Total sampling time: 0.0 seconds
Number of cycles: 0
Sampled threads:
Self Total Cumul
Nr Count % Count % Count % Calls Function
-------
-------
0 0.0 elsewhere
System information:
$ uname -a
Darwin vier.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-
> *features*
(:SB-POSIX-
:HUNCHENTOOT-
:URL-REWRITE :PARENSCRIPT :KMR-NORMAL-DSDC :KMR-NORMAL-CESD :SPLIT-SEQUENCE
:KMR-MOP :HUNCHENTOOT-NO-SSL :CL-PPCRE :ASDF :SB-THREAD :ANSI-CL :COMMON-LISP
:SBCL :SB-DOC :SB-TEST :SB-LDB :SB-PACKAGE-LOCKS :SB-UNICODE :SB-EVAL
:SB-SOURCE-
:DARWIN :MACH-EXCEPTION
:STACK-
:COMPARE-
:STACK-
:STACK-
:CYCLE-COUNTER :COMPLEX-FLOAT-VOPS :FLOAT-EQL-VOPS :INLINE-CONSTANTS
:OS-PROVIDES-
:OS-PROVIDES-
Call counts are not currently reported unless samples have been gathered for the function (which seems suboptimal, yes), and unless MY-FUNCTION takes > 0.01 seconds of run-time, no samples will be gathered during its run.
Issues to fix:
1) Better WARNING comparing the time the profiling took and the sampling interval, noting if any samples could have been gathered in the first place -- and suggesting a longer profiling run if not.
2) Report call counts for functions for which no samples have been gathered.