pprof
View
Top
Graph
Flame Graph
Peek
Source
Disassemble
Sample
samples
cpu
Refine
Focus
Ignore
Hide
Show
Show from
Reset
Config
Save as ...
✓
Default
Download
tests.test cpu
File: tests.test
Build ID: a8f1019f707d60417bcfa237460769131865f9cf
Type: cpu
Time: 2026-09-13 10:43:01 UTC
Duration: 23.31s, Total samples = 71.53s (306.91%)
Showing nodes accounting for 27.94s, 39.06% of 71.53s total
Dropped 739 nodes (cum <= 0.36s)
Dropped 123 edges (freq <= 0.07s)
Showing top 80 nodes out of 325
See https://git.io/JfYMW for how to read the graph
Save options as
Delete config
tests.test
N1
sync
(*WaitGroup)
Go
func1
0.18s (0.25%)
of 57.81s (80.82%)
N6
scanner
(*scanner)
scanFile
0.03s (0.042%)
of 16.47s (23.03%)
N1->N6
16.47s
N7
compiler
parallel-range1
1
0.05s (0.07%)
of 40.63s (56.80%)
N1->N7
40.63s
N2
runtime
mallocgc
0.56s (0.78%)
of 12.14s (16.97%)
N5
runtime
newstack
0.09s (0.13%)
of 10.46s (14.62%)
N2->N5
4.01s
N23
runtime
(*mcache)
nextFree
0.07s (0.098%)
of 3.65s (5.10%)
N2->N23
1.23s
N24
runtime
mallocgcSmallScanNoHeaderSC5
0.71s (0.99%)
of 2.39s (3.34%)
N2->N24
0.46s
N52
runtime
mallocgcSmallScanNoHeader
0.41s (0.57%)
of 3.17s (4.43%)
N2->N52
3.17s
N56
runtime
memclrNoHeapPointers
1.18s (1.65%)
N2->N56
0.35s
N3
core
(*Function)
Compile
0.01s (0.014%)
of 30.36s (42.44%)
N8
core
(*Function)
compileAST
0.06s (0.084%)
of 16.62s (23.24%)
N3->N8
16.62s
(inline)
N29
ast
Parse
0.03s (0.042%)
of 5.99s (8.37%)
N3->N29
5.99s
N32
core
(*Function)
optimize
0.06s (0.084%)
of 4.37s (6.11%)
N3->N32
4.37s
N51
core
(*Function)
composeStruct
0.08s (0.11%)
of 2.71s (3.79%)
N3->N51
2.71s
N4
core
(*Function)
compileASTNode
0.12s (0.17%)
of 16.57s (23.17%)
N18
core
(*Function)
compileIf
0 of 7.03s (9.83%)
N4->N18
7.03s
N28
core
(*Function)
compileLoop
0.04s (0.056%)
of 6.26s (8.75%)
N4->N28
6.26s
N39
ssa
(*IR)
Append
0.03s (0.042%)
of 1.47s (2.06%)
N4->N39
0.18s
N40
core
(*Function)
compileReturn
0.08s (0.11%)
of 3.55s (4.96%)
N4->N40
3.55s
N71
core
(*Function)
define
0.07s (0.098%)
of 4.32s (6.04%)
N4->N71
4.32s
N17
runtime
copystack
0.08s (0.11%)
of 9.53s (13.32%)
N5->N17
9.53s
N68
runtime
findfunc
1.12s (1.57%)
of 1.23s (1.72%)
N5->N68
0.21s
N11
runtime
makeslice
0.37s (0.52%)
of 4s (5.59%)
N6->N11
0.21s
N12
expression
Parse
0.30s (0.42%)
of 4.50s (6.29%)
N6->N12
0.14s
N20
fs
ReadFile
0.06s (0.084%)
of 9.31s (13.02%)
N6->N20
9.31s
N67
scanner
(*scanner)
queueDirectory
0.01s (0.014%)
of 3.32s (4.64%)
N6->N67
1.63s
N79
token
Tokenize
0.60s (0.84%)
of 1.88s (2.63%)
N6->N79
1.88s
N7->N3
30.36s
N13
codegen
(*Function)
CompileToAssembly
0.04s (0.056%)
of 10.14s (14.18%)
N7->N13
10.14s
N8->N4
16.57s
N9
core
(*Function)
evaluateRight
0.02s (0.028%)
of 6.59s (9.21%)
N15
core
(*Function)
evaluate
0.11s (0.15%)
of 6.56s (9.17%)
N9->N15
6.31s
N9->N39
0.16s
N10
runtime
systemstack
0.06s (0.084%)
of 3.83s (5.35%)
N59
runtime
wakep
0.03s (0.042%)
of 2.99s (4.18%)
N10->N59
0.62s
N72
runtime
lock
0.01s (0.014%)
of 1.24s (1.73%)
N10->N72
0.24s
N11->N2
3.31s
N11->N5
0.32s
N12->N5
1.10s
N12->N11
0.29s
N12->N24
1.03s
N69
expression
handleGroupEnd
0.08s (0.11%)
of 1.80s (2.52%)
N12->N69
1.80s
N35
codegen
(*Function)
execute
0.16s (0.22%)
of 2.88s (4.03%)
N13->N35
2.88s
N55
slices
Backward[go
shape
[]*git
urbach
dev/cli/q/src/codegen
Step,go
shape
*uint8]
func1
0.04s (0.056%)
of 3.55s (4.96%)
N13->N55
3.55s
(inline)
N62
codegen
createSteps
0.15s (0.21%)
of 2.09s (2.92%)
N13->N62
2.09s
N14
linux
Syscall6
7.22s (10.09%)
N15->N9
2s
N21
core
(*Function)
evaluateCall
0.12s (0.17%)
of 4.32s (6.04%)
N15->N21
3.32s
N15->N39
0.31s
N41
core
(*Function)
evaluateLeaf
0.05s (0.07%)
of 4.24s (5.93%)
N15->N41
4.24s
N16
runtime
futex
3.78s (5.28%)
N58
runtime
(*unwinder)
next
0.11s (0.15%)
of 3.89s (5.44%)
N17->N58
3.82s
N76
runtime
adjustframe
0.41s (0.57%)
of 4.56s (6.37%)
N17->N76
4.56s
N18->N8
3.36s
(inline)
N42
core
(*Function)
deleteResources
0.14s (0.2%)
of 2.21s (3.09%)
N18->N42
0.27s
N50
core
(*Function)
compileCondition
0.03s (0.042%)
of 3.24s (4.53%)
N18->N50
2.92s
N19
runtime
pcvalue
2.24s (3.13%)
of 4.60s (6.43%)
N54
runtime
step
1.62s (2.26%)
of 1.88s (2.63%)
N19->N54
1.59s
N20->N11
0.30s
N33
os
openFileNolog
0.01s (0.014%)
of 5.97s (8.35%)
N20->N33
5.97s
N21->N15
0.45s
N66
core
(*Function)
evaluateAll
0.02s (0.028%)
of 3.22s (4.50%)
N21->N66
2.50s
N22
runtime
growslice
0.48s (0.67%)
of 2.34s (3.27%)
N22->N2
1.44s
N23->N5
0.30s
N49
runtime
(*mcache)
refill
0.08s (0.11%)
of 3.11s (4.35%)
N23->N49
3.11s
N24->N5
0.57s
N24->N23
0.79s
N25
syscall
openat
0.02s (0.028%)
of 4.95s (6.92%)
N25->N2
2.12s
N25->N5
0.09s
N26
syscall
RawSyscall6
0.04s (0.056%)
of 6.95s (9.72%)
N25->N26
2.49s
N26->N14
6.91s
N27
runtime
mcall
0.02s (0.028%)
of 6.23s (8.71%)
N38
runtime
schedule
0.19s (0.27%)
of 5.34s (7.47%)
N27->N38
5.34s
N28->N8
4.19s
(inline)
N29->N5
0.08s
N29->N11
0.32s
N43
ast
parseInstruction
0.02s (0.028%)
of 5.69s (7.95%)
N29->N43
5.69s
N30
runtime
mapaccess2_faststr
0.35s (0.49%)
of 2.32s (3.24%)
N30->N5
0.47s
N31
runtime
mapassign_faststr
0.36s (0.5%)
of 2.64s (3.69%)
N31->N2
1.06s
N32->N42
0.33s
N74
slices
Backward[go
shape
[]git
urbach
dev/cli/q/src/ssa
Value,go
shape
interface { AddUser; Equals bool; Inputs []git
urbach
dev/cli/q/src/ssa
Value; IsPure bool; RemoveUser; Replace; String string; Type git
urbach
dev/cli/q/src/types
Type; Users []git
urbach
dev/cli/q/src/ssa
Value }]
func1
0.20s (0.28%)
of 1.58s (2.21%)
N32->N74
0.85s
(inline)
N78
ssa
(*IR)
ComputeUsers
0.60s (0.84%)
of 1.69s (2.36%)
N32->N78
1.69s
N34
runtime
newobject
0.12s (0.17%)
of 1.69s (2.36%)
N33->N34
0.08s
N36
syscall
Syscall
0.04s (0.056%)
of 4.37s (6.11%)
N33->N36
0.71s
N53
os
ignoringEINTR
0 of 4.69s (6.56%)
N33->N53
4.22s
(inline)
N34->N2
1.57s
N35->N5
0.62s
N35->N11
0.12s
N35->N22
0.32s
N36->N26
4.06s
N37
ssa
(*Block)
AddSuccessor
0.01s (0.014%)
of 3.66s (5.12%)
N37->N22
0.16s
N46
ssa
mergeIdentifiers
0.08s (0.11%)
of 3.46s (4.84%)
N37->N46
3.46s
N38->N59
2.04s
N75
runtime
findRunnable
0.19s (0.27%)
of 2.72s (3.80%)
N38->N75
2.72s
N39->N22
0.13s
N39->N74
0.73s
(inline)
N40->N42
1.61s
N40->N66
1.28s
N41->N5
1.86s
N41->N39
0.24s
N61
runtime
mapassign
0.25s (0.35%)
of 1.09s (1.52%)
N41->N61
0.08s
N63
core
(*Function)
evaluateIdentifier
0.15s (0.21%)
of 3.57s (4.99%)
N41->N63
3.57s
N42->N11
0.13s
N42->N30
0.73s
N43->N12
2.45s
N44
ast
parseKeyword
0.03s (0.042%)
of 3.96s (5.54%)
N43->N44
3.96s
N44->N12
0.66s
N70
expression
NewList
0.03s (0.042%)
of 2.15s (3.01%)
N44->N70
1.67s
N80
ast
block
0.01s (0.014%)
of 3.02s (4.22%)
N44->N80
3.02s
N45
testing
(*B)
run1
func1
0 of 4.29s (6.00%)
N47
compiler
Compile
0.03s (0.042%)
of 3.74s (5.23%)
N45->N47
3.74s
N46->N11
0.09s
N46->N30
0.24s
N46->N31
1.45s
N46->N34
0.21s
N65
scanner
Scan
0.06s (0.084%)
of 1.61s (2.25%)
N47->N65
1.61s
N48
fs
Walk
0 of 3.18s (4.45%)
N48->N25
0.74s
N48->N36
1.50s
N49->N5
0.62s
N49->N10
0.99s
N49->N56
0.52s
N50->N9
0.94s
N50->N37
2.06s
N51->N2
1.61s
N51->N11
0.11s
N51->N31
0.15s
N51->N34
0.18s
N51->N39
0.13s
N51->N61
0.24s
N52->N23
1.26s
N52->N56
0.24s
N53->N25
4.21s
N55->N5
0.30s
N55->N22
0.23s
N57
runtime
(*unwinder)
resolveInternal
0.65s (0.91%)
of 3.12s (4.36%)
N57->N19
2.47s
N58->N57
2.80s
N58->N68
0.93s
N59->N16
2.57s
N60
runtime
(*stkframe)
getStackMap
0.95s (1.33%)
of 3.50s (4.89%)
N60->N19
2.06s
N61->N2
0.22s
N62->N11
1s
N62->N34
0.08s
N62->N61
0.49s
N63->N30
0.69s
N64
core
(*Function)
evaluatePackageMember
0.04s (0.056%)
of 2.67s (3.73%)
N63->N64
2.58s
N64->N9
2.01s
N64->N30
0.32s
N65->N30
0.21s
N65->N31
0.57s
N66->N9
3.09s
N66->N11
0.11s
N67->N48
3.18s
N69->N12
0.22s
N69->N24
0.67s
N69->N70
0.60s
N70->N11
0.45s
N73
token
List
Split
0.08s (0.11%)
of 2.05s (2.87%)
N70->N73
1.68s
N71->N9
3.25s
N71->N31
0.09s
N73->N12
1.54s
N73->N22
0.13s
N73->N34
0.14s
N75->N16
0.94s
N75->N72
0.09s
(inline)
N76->N60
3.50s
N77
scanner
Scan
func1
0.01s (0.014%)
of 1.88s (2.63%)
N77->N53
0.10s
(inline)
N77->N67
1.69s
N78->N22
0.65s
N79->N11
0.43s
N80->N29
3.02s