commit | 5ff9b346796132178ac29b3b288915e77d3e3942 | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Sun Apr 12 04:17:10 2015 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Sun Apr 12 04:17:10 2015 +0900 |
tree | 1b142b33c8c50cd011e92861b6a6896cc324d927 | |
parent | c4c98106620069867625123d0a4fd9fc4addfeb5 [diff] [blame] |
Add --kati_heapprofile flag
diff --git a/log.go b/log.go index 78060b1..2117a0e 100644 --- a/log.go +++ b/log.go
@@ -31,6 +31,7 @@ func Error(filename string, lineno int, f string, a ...interface{}) { f = fmt.Sprintf("%s:%d: %s", filename, lineno, f) + maybeWriteHeapProfile() ErrorNoLocation(f, a...) } @@ -40,5 +41,6 @@ if cpuprofile != "" { pprof.StopCPUProfile() } + maybeWriteHeapProfile() os.Exit(2) }