Skip to content

Instantly share code, notes, and snippets.

@boris-spas
Created Oct 26, 2021
Embed
What would you like to do?
$GRAALVM_HOME/bin/js --cpusampler --cpusampler.Output=calltree primes.js
----------------------------------------------------------------------------------------------
Sampling Call Tree. Recorded 780 samples with period 10ms. Missed 0 samples.
Self Time: Time spent on the top of the stack.
Total Time: Time spent somewhere on the stack.
----------------------------------------------------------------------------------------------
Name || Total Time || Self Time || Location
----------------------------------------------------------------------------------------------
:program || 7800ms 100.0% || 0ms 0.0% || primes.js~1-73:0-1488
findPrime || 7440ms 95.4% || 40ms 0.5% || primes.js~11-20:164-329
isPrime || 7400ms 94.9% || 7400ms 94.9% || primes.js~2-9:26-161
next || 320ms 4.1% || 0ms 0.0% || primes.js~55-61:1020-1220
accept || 320ms 4.1% || 320ms 4.1% || primes.js~35-46:596-902
isPrime || 40ms 0.5% || 40ms 0.5% || primes.js~2-9:26-161
----------------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment