Update profile package to latest version

This commit is contained in:
Bryan Boreham committed 2016-04-26 14:57:04 +01:00
1 parent f56d001703
commit 15054393fb
4 files changed
+6 -9

No files matched your search

+2 -5
View File
@@ -12,9 +12,9 @@ import (
"sync/atomic"
"time"
"github.com/davecheney/profile"
"github.com/docker/docker/pkg/mflag"
"github.com/gorilla/mux"
"github.com/pkg/profile"
"github.com/weaveworks/mesh"
"github.com/weaveworks/go-checkpoint"
@@ -231,10 +231,7 @@ func main() {
checkForUpdates()
if prof != "" {
p := *profile.CPUProfile
p.ProfilePath = prof
p.NoShutdownHook = true
defer profile.Start(&p).Stop()
defer profile.Start(profile.CPUProfile, profile.ProfilePath(prof), profile.NoShutdownHook).Stop()
}
if protocolMinVersion < mesh.ProtocolMinVersion || protocolMinVersion > mesh.ProtocolMaxVersion {