Skip to content

Instantly share code, notes, and snippets.

@felixge
Last active December 6, 2021 22:03
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 felixge/b3a2436035ccfc24d3a0aa0fe98b3c57 to your computer and use it in GitHub Desktop.
Save felixge/b3a2436035ccfc24d3a0aa0fe98b3c57 to your computer and use it in GitHub Desktop.
$ $GO test -short -v -run 'TestLabelSystemstack' -count 100 | grep 'have label'
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
$ $GO test -short -v -run 'TestLabelSystemstack' -count 100 | grep 'have label'
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1467: only 0.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1467: only 50.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1467: only 75.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1467: only 75.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1467: only 66.7% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1467: only 50.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1467: only 50.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1467: only 83.3% of labelHog(systemstack()) samples have label
pprof_test.go:1467: only 80.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1467: only 0.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1467: only 80.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1467: only 0.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1467: only 0.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
pprof_test.go:1470: 100.0% of labelHog(systemstack()) samples have label
diff --git a/src/runtime/pprof/pprof_test.go b/src/runtime/pprof/pprof_test.go
index 913f899593..16609f1c52 100644
--- a/src/runtime/pprof/pprof_test.go
+++ b/src/runtime/pprof/pprof_test.go
@@ -1466,6 +1466,8 @@ func TestLabelSystemstack(t *testing.T) {
if ratio < 0.9 {
t.Logf("only %.1f%% of labelHog(systemstack()) samples have label", ratio*100)
return false
+ } else if withLabel+withoutLabel > 0 {
+ t.Logf("%.1f%% of labelHog(systemstack()) samples have label", ratio*100)
}
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment