Your program can control profiling. This is useful when you want to profile only a part of the program.
In your program, call
to temporarily stop collecting, or call stop-profiling with
to stop collecting and print the results. At any point you can call
;; start profiling, current process only
(start-profiling :processes :current)
;; temporarily suspend profiling
(stop-profiling :print nil)
;; resume profiling
(start-profiling :initialize nil)
;; now, all processes are interesting
(set-process-profiling :set :all)
;; stop profiling and print the results
Note: you cannot call start-profiling inside the scope of the macro profile or while the graphical Profiler is profiling, because the two profiling modes are incompatible.