To profile Elisp code, I tried benchmark.el
and some profiler-
-prefixed built-in functions.
But all their reports are either non-human-readable or inadequate.
I think the ideal outcome is like what the time
macro does in Common Lisp:
CL-USER> (time
(print "Hello, world!"))
"Hello, world!"
Evaluation took:
0.000 seconds of real time
0.000000 seconds of total run time (0.000000 user, 0.000000 system)
100.00% CPU
154,266 processor cycles
0 bytes consed
"Hello, world!"
It gives real/run/user/system time, the number of processor cycles, bytes consed (memory usage), etc.
Is there any way to do that (or just a part of it)?