Add compiler profiling
This commit is contained in:
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
go test -bench=. -benchmem -cpuprofile cpu_profile.out
|
||||
go tool pprof cpu_profile.out
|
||||
go test -bench=. -benchmem -cpuprofile cpu.out
|
||||
go tool pprof -cum cpu.out
|
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
go test -bench=. -benchmem -memprofile mem_profile.out
|
||||
go tool pprof mem_profile.out
|
||||
go test -bench=. -benchmem -memprofile mem.out
|
||||
go tool pprof -cum mem.out
|
Reference in New Issue
Block a user