Macro
hcl
profile &body forms => final
The forms making up the program being profiled.
The result of evaluating the final form.
*profile-symbol-list*. Counters are maintained for the number of calls to each symbol, the total number of times the symbol is found on the stack, and the number of times the profiler finds the symbol on the top of the stack.
USER 22 > (set-up-profiler
:symbols '(* gethash typep maphash))
NIL
USER 23 > (profile (let ((x 1))
(loop for a from 1 to 50 by 1
do (setq x (* a x))
finally (return x))))
profile-stacks called 12 times
Symbol called profile (%) top (%)
MAPHASH 1 0 (0) 0 (0)*
50 1 (8) 0 (0)
SYSTEM::DUMMY-STRUCTURE-ACCESSOR 6 0 (0) 0 (0)
SYSTEM::DUMMY-STRUCTURE-SETTER 9 0 (0) 0 (0)
TYPEP 19 1 (8) 0 (0)
GETHASH 78 3 (25) 3 (25)
Top of stack not monitored 75% of the time
30414093201713378043612608166064768844377641568960512000000000000
print-profile-listset-up-profiler