[Openmcl-devel] profiler
R. Matthew Emerson
rme at clozure.com
Mon Aug 1 20:02:16 PDT 2016
Max Rottenkolber took little snippet of code that I wrote and polished it up and documented it, and I thought some of you might find it interesting or useful if you haven't seen it yet.
Max says:
Still, my search was not in vain. rme sent me a very helpful paste, whose contents he described as “a crude userland-based sampling profiler”. Here is how it works: it peeks into the call stack of a running process repeatedly to find out which function is being run, and counts how often it finds the process busy with a given function. With the collected information it can then report an estimate of where time is spent.
http://mr.gy/blog/sam.html
https://github.com/eugeneia/sam
More information about the Openmcl-devel
mailing list