4 ms·
In Ruby, check out https://apidock.com/ruby/Kernel/set_trace_func https://apidock.com/ruby/Kernel/set_trace_func. I believe Python has something similar, too.
by amorphid 9y ago
In Ruby, check out https://apidock.com/ruby/Kernel/set_trace_func https://apidock.com/ruby/Kernel/set_trace_func. I believe Python has something similar, too.
- ekimekim 9y agoI'm referring to a sampling profiler - as mentioned in the article, these generally work on a timer (either a thread with a loop, or a recurring signal), not by a per-function callback.