mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
vendor changes to pkg/profile (#1671)
This commit is contained in:
committed by
Harshavardhana
parent
4bc923e63b
commit
2da34e4668
7
vendor/github.com/pkg/profile/profile.go
generated
vendored
7
vendor/github.com/pkg/profile/profile.go
generated
vendored
@@ -104,7 +104,8 @@ func (p *profile) Stop() {
|
||||
|
||||
// Start starts a new profiling session.
|
||||
// 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 {
|
||||
Stop()
|
||||
} {
|
||||
@@ -191,9 +192,5 @@ func Start(options ...func(*profile)) interface {
|
||||
}()
|
||||
}
|
||||
|
||||
prof.closers = append(prof.closers, func() {
|
||||
atomic.SwapUint32(&started, 0)
|
||||
})
|
||||
|
||||
return &prof
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user