i'm attempting profile golang test suite uses gocheck test framework.
i'm running following commands start test profiling:
go test -c -o integration.test -cpuprofile cpu.prof -blockprofile block.prof ./integration.test -test.cpuprofile cpu.prof -test.blockprofile block.prof
the test suite runs normally, , produces 2 expected files. total test execution time approxiately 50 minutes. problem contents of files.
if create report go tool pprof
or go-torch profiles appear contain data few seconds, instead of entire test run (50 minutes).
if @ stdout of test runs, notice tests slower others, , run 50s, slow tests don't appear in profile data.
i believe causing pprof write out incorrect data, i'm not sure might be. guess has gocheck
s use of panic()
run every test , test fixture.
this profile1.zip contains: test binary, profiles, , framegraph report them.
Comments
Post a Comment