Add compiler profiling

This commit is contained in:
Vikram Rangnekar 2019-03-27 00:15:14 -04:00
parent f1a8610e27
commit b0083d99ef
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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