mirror of https://github.com/minio/minio.git
vendor changes to pkg/profile (#1671)
This commit is contained in:
parent
4bc923e63b
commit
2da34e4668
|
@ -104,7 +104,8 @@ func (p *profile) Stop() {
|
||||||
|
|
||||||
// Start starts a new profiling session.
|
// Start starts a new profiling session.
|
||||||
// The caller should call the Stop method on the value returned
|
// The caller should call the Stop method on the value returned
|
||||||
// to cleanly stop profiling.
|
// to cleanly stop profiling. Start can only be called once
|
||||||
|
// per program execution.
|
||||||
func Start(options ...func(*profile)) interface {
|
func Start(options ...func(*profile)) interface {
|
||||||
Stop()
|
Stop()
|
||||||
} {
|
} {
|
||||||
|
@ -191,9 +192,5 @@ func Start(options ...func(*profile)) interface {
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
prof.closers = append(prof.closers, func() {
|
|
||||||
atomic.SwapUint32(&started, 0)
|
|
||||||
})
|
|
||||||
|
|
||||||
return &prof
|
return &prof
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,8 +109,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "github.com/pkg/profile",
|
"path": "github.com/pkg/profile",
|
||||||
"revision": "19396ecfda37c1c9ddaa52019adca59d582e4832",
|
"revision": "c78aac22bd43883fd2817833b982153dcac17b3b",
|
||||||
"revisionTime": "2016-03-15T12:21:13+11:00"
|
"revisionTime": "2016-05-18T16:56:57+10:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "github.com/rs/cors",
|
"path": "github.com/rs/cors",
|
||||||
|
|
Loading…
Reference in New Issue