diff options
| author | Chris Lu <chris.lu@gmail.com> | 2017-06-22 01:33:58 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2017-06-22 01:33:58 -0700 |
| commit | 1fbb8723dc414dc9b84bbaf84224b6f5829d34de (patch) | |
| tree | 4e07b790133975429710cdb80b9d34438e5d5fc6 /weed/command/server.go | |
| parent | 2c7dad589dcb7ed513180eb4a743e389f8134a73 (diff) | |
| download | seaweedfs-1fbb8723dc414dc9b84bbaf84224b6f5829d34de.tar.xz seaweedfs-1fbb8723dc414dc9b84bbaf84224b6f5829d34de.zip | |
add cpu and mem pprof
Diffstat (limited to 'weed/command/server.go')
| -rw-r--r-- | weed/command/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/server.go b/weed/command/server.go index c8878e9eb..cd8ddf66a 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -290,7 +290,7 @@ func runServer(cmd *Command, args []string) bool { }() } - OnInterrupt(func() { + util.OnInterrupt(func() { volumeServer.Shutdown() pprof.StopCPUProfile() }) |
