Skip to content

Instantly share code, notes, and snippets.

@takikawa
Created August 22, 2012 22:06
Show Gist options
  • Save takikawa/3429858 to your computer and use it in GitHub Desktop.
Save takikawa/3429858 to your computer and use it in GitHub Desktop.
Profiling results
$ racket nqueens-racket-stream.rkt
Profiling results
-----------------
Total cpu time observed: 5292ms (out of 5412ms)
Number of samples taken: 95 (once every 56ms)
============================================================
Caller
Idx Total Self Name+src Local%
ms(pct) ms(pct) Callee
============================================================
[1] 5292(100.0%) 0(0.0%) [running body] ...de/nqueens-racket-stream.rkt:##f
profile-thunk12 [2] 100.0%
------------------------------------------------------------
[running body] [1] 100.0%
[2] 5292(100.0%) 0(0.0%) profile-thunk12 ...t/collects/profile/main.rkt:9:0
run [3] 100.0%
------------------------------------------------------------
profile-thunk12 [2] 100.0%
[3] 5292(100.0%) 0(0.0%) run ...t/racket-git/collects/profile/main.rkt:29:2
stream-first [8] 68.7%
temp2 [4] 31.3%
------------------------------------------------------------
run [3] 100.0%
[4] 1658(31.3%) 0(0.0%) temp2 ...sumu/code/nqueens-racket-stream.rkt:71:15
for-loop [5] 100.0%
------------------------------------------------------------
for-loop [5] 50.0%
temp2 [4] 50.0%
[5] 1658(31.3%) 0(0.0%) for-loop ...lects/racket/private/sequence.rkt:41:2
for-loop [5] 50.0%
unsafe-stream-rest [6] 38.4%
??? [7] 11.6%
------------------------------------------------------------
for-loop [5] 100.0%
[6] 1272(24.0%) 0(0.0%) unsafe-stream-rest ...racket/private/for.rkt:420:2
??? [13] 100.0%
------------------------------------------------------------
for-loop [5] 100.0%
[7] 386(7.3%) 182(3.4%) ??? ...-git/collects/racket/private/for.rkt:945:34
stream-first [8] 52.8%
------------------------------------------------------------
loop [11] 2.8%
??? [7] 5.3%
run [3] 91.9%
[8] 3838(72.5%) 418(7.9%) stream-first ...lects/racket/private/for.rkt:412:2
??? [9] 91.9%
------------------------------------------------------------
stream-first [8] 100.0%
[9] 3634(68.7%) 0(0.0%) ??? ...acket-git/collects/racket/stream.rkt:168:22
force! [10] 100.0%
------------------------------------------------------------
??? [9] 100.0%
[10] 3634(68.7%) 0(0.0%) force! ...ket-git/collects/racket/stream.rkt:156:6
loop [11] 100.0%
------------------------------------------------------------
force! [10] 100.0%
[11] 3634(68.7%) 528(10.0%) loop ...cket-git/collects/racket/stream.rkt:158:10
stream-rest [12] 79.6%
stream-first [8] 5.9%
------------------------------------------------------------
loop [11] 0.6%
??? [13] 99.4%
[12] 4164(78.7%) 1866(35.3%) stream-rest ...llects/racket/private/for.rkt:429:2
??? [13] 99.8%
streams-append [14] 0.0%
------------------------------------------------------------
unsafe-stream-rest [6] 0.2%
stream-rest [12] 99.8%
[13] 4164(78.7%) 1962(37.1%) ??? ...acket-git/collects/racket/stream.rkt:111:20
stream-rest [12] 99.5%
------------------------------------------------------------
stream-rest [12] 100.0%
[14] 336(6.3%) 336(6.3%) streams-append ...collects/racket/stream.rkt:104:0
------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment