Lately I've been using Pharo to solve Project Euler puzzles. Several things I've found:
[ 4700 naturalSummarySizeModulo: 1000000 ] timeProfile.
This generates a diagram like:
fork
to put it in the background. If a large amount of space is used in the background process, it isn't a good idea to save the image (it may hang, save the code to a repository instead). It also isn't such a good idea to increase the process priority.For a running process that is forked into the background, it is possible to bring up the process browser and profile the process:
(ZnClient new beOneShot; get: 'https://projecteuler.net/project/resources/p079_keylog.txt'; contents) substrings collect: [ :e | e asNumber ]