Include perfstats and heap profiles in standard build

This commit is contained in:
Jakob Borg
2014-08-13 14:38:23 +02:00
parent 58381496a2
commit 213acaee3b
3 changed files with 17 additions and 12 deletions

View File

@@ -2,8 +2,6 @@
// All rights reserved. Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
// +build heapprof
package main
import (
@@ -16,7 +14,9 @@ import (
)
func init() {
go saveHeapProfiles()
if os.Getenv("STHEAPPROFILE") != "" {
go saveHeapProfiles()
}
}
func saveHeapProfiles() {