aboutsummaryrefslogtreecommitdiff
path: root/weed/util/pprof.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2018-10-09 00:53:30 -0700
committerGitHub <noreply@github.com>2018-10-09 00:53:30 -0700
commit88ad8d3a896e1ed339b3d811ca921ccca8c9c68a (patch)
tree9b96d204547beb42304c3d83a6a37d6b307f63f3 /weed/util/pprof.go
parent1d3f045e850595e84981a009c1bf1b8c384bdaab (diff)
parent4db68669b6a27971650fe09516319f87a8cf4b22 (diff)
downloadseaweedfs-88ad8d3a896e1ed339b3d811ca921ccca8c9c68a.tar.xz
seaweedfs-88ad8d3a896e1ed339b3d811ca921ccca8c9c68a.zip
Merge pull request #747 from a1exwang/master
[bugfix] Fix interrupt hook overwritten bug
Diffstat (limited to 'weed/util/pprof.go')
-rw-r--r--weed/util/pprof.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/weed/util/pprof.go b/weed/util/pprof.go
index 94bcdb8b3..363017555 100644
--- a/weed/util/pprof.go
+++ b/weed/util/pprof.go
@@ -14,7 +14,6 @@ func SetupProfiling(cpuProfile, memProfile string) {
glog.Fatal(err)
}
pprof.StartCPUProfile(f)
- defer pprof.StopCPUProfile()
OnInterrupt(func() {
pprof.StopCPUProfile()
})