Skip to content

Instantly share code, notes, and snippets.

@boris-spas
Created October 26, 2021 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boris-spas/11de7f284f10ab4a77cebe3b85632901 to your computer and use it in GitHub Desktop.
Save boris-spas/11de7f284f10ab4a77cebe3b85632901 to your computer and use it in GitHub Desktop.
$GRAALVM_HOME/bin/js --cpusampler --cpusampler.ShowTiers=true primes.js
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Sampling Histogram. 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.
T0: Percent of time spent in interpreter.
T1: Percent of time spent in code compiled by tier 1 compiler.
T2: Percent of time spent in code compiled by tier 2 compiler.
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Thread[main,5,main]
Name || Total Time | T0 | T1 | T2 || Self Time | T0 | T1 | T2 || Location
-----------------------------------------------------------------------------------------------------------------------------------------------------------
isPrime || 7280ms 93.3% | 0.7% | 0.5% | 98.8% || 7280ms 93.3% | 0.7% | 0.5% | 98.8% || primes.js~2-9:26-161
accept || 500ms 6.4% | 2.0% | 0.0% | 98.0% || 500ms 6.4% | 2.0% | 0.0% | 98.0% || primes.js~35-46:596-902
DivisibleByFilter || 10ms 0.1% | 100.0% | 0.0% | 0.0% || 10ms 0.1% | 100.0% | 0.0% | 0.0% || primes.js~29-47:471-904
findPrime || 7260ms 93.1% | 0.6% | 1.1% | 98.3% || 10ms 0.1% | 0.0% | 0.0% | 100.0% || primes.js~11-20:164-329
next || 510ms 6.5% | 5.9% | 3.9% | 90.2% || 0ms 0.0% | 0.0% | 0.0% | 0.0% || primes.js~55-61:1020-1220
:program || 7800ms 100.0% | 100.0% | 0.0% | 0.0% || 0ms 0.0% | 0.0% | 0.0% | 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