People here might have heard about the work of Prof Emery Berger on the causal profiling technology. Here's a paper presenting Coz, a causal profiler. https://www.sigops.org/s/conferences/sosp/2015/current/2015-Monterey/printable/090-curtsinger.pdf
They have also release a profiler for Python using the same technology. It is called Scalene: https://github.com/plasma-umass/scalene In case Pharo does not have such a profiler, maybe an expert could work on it? Best, ~Mayuresh