Skip to content

Instantly share code, notes, and snippets.

@boris-spas
Last active Oct 26, 2021
Embed
What would you like to do?
$GRAALVM_HOME/bin/js --cpusampler primes.js
------------------------------------------------------------------------------------------------
Sampling Histogram. Recorded 774 samples with period 10ms. Missed 1 samples.
Self Time: Time spent on the top of the stack.
Total Time: Time spent somewhere on the stack.
------------------------------------------------------------------------------------------------
Thread[main,5,main]
Name || Total Time || Self Time || Location
------------------------------------------------------------------------------------------------
isPrime || 7330ms 94.7% || 7330ms 94.7% || primes.js~2-9:26-161
accept || 330ms 4.3% || 330ms 4.3% || primes.js~35-46:596-902
findPrime || 7370ms 95.2% || 70ms 0.9% || primes.js~11-20:164-329
AcceptFilter || 10ms 0.1% || 10ms 0.1% || primes.js~23-27:405-468
Primes || 10ms 0.1% || 0ms 0.0% || primes.js~49-62:907-1222
next || 330ms 4.3% || 0ms 0.0% || primes.js~55-61:1020-1220
:program || 7740ms 100.0% || 0ms 0.0% || primes.js~1-73:0-1488
-----------------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment