Skip to content

Instantly share code, notes, and snippets.

@lucas-clemente
Created October 26, 2016 13:37
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 lucas-clemente/676c3ad5d5a92fd79c33f8315579b2ec to your computer and use it in GitHub Desktop.
Save lucas-clemente/676c3ad5d5a92fd79c33f8315579b2ec to your computer and use it in GitHub Desktop.
✘ ~ → go test -v runtime/pprof
=== RUN TestMemoryProfiler
--- PASS: TestMemoryProfiler (0.01s)
=== RUN TestCPUProfile
--- PASS: TestCPUProfile (5.00s)
pprof_test.go:139: uname -a: Darwin liszt.local 16.1.0 Darwin Kernel Version 16.1.0: Thu Oct 13 21:26:57 PDT 2016; root:xnu-3789.21.3~60/RELEASE_X86_64 x86_64
pprof_test.go:216: total 440 CPU profile samples collected
pprof_test.go:239: runtime/pprof_test.cpuHog1: 406
=== RUN TestCPUProfileMultithreaded
--- PASS: TestCPUProfileMultithreaded (5.00s)
pprof_test.go:139: uname -a: Darwin liszt.local 16.1.0 Darwin Kernel Version 16.1.0: Thu Oct 13 21:26:57 PDT 2016; root:xnu-3789.21.3~60/RELEASE_X86_64 x86_64
pprof_test.go:216: total 829 CPU profile samples collected
pprof_test.go:239: runtime/pprof_test.cpuHog1: 351
pprof_test.go:239: runtime/pprof_test.cpuHog2: 395
=== RUN TestCPUProfileWithFork
--- PASS: TestCPUProfileWithFork (0.85s)
=== RUN TestGoroutineSwitch
--- PASS: TestGoroutineSwitch (1.17s)
=== RUN TestMathBigDivide
--- PASS: TestMathBigDivide (5.01s)
pprof_test.go:139: uname -a: Darwin liszt.local 16.1.0 Darwin Kernel Version 16.1.0: Thu Oct 13 21:26:57 PDT 2016; root:xnu-3789.21.3~60/RELEASE_X86_64 x86_64
pprof_test.go:216: total 469 CPU profile samples collected
=== RUN TestStackBarrierProfiling
--- PASS: TestStackBarrierProfiling (5.02s)
=== RUN TestBlockProfile
--- PASS: TestBlockProfile (0.20s)
=== RUN TestGoroutineCounts
--- PASS: TestGoroutineCounts (0.02s)
PASS
ok runtime/pprof 22.384s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment