Skip to content

Commit

Permalink
core: PATCH V6
Browse files Browse the repository at this point in the history
  • Loading branch information
Adhityaa Chandrasekar committed Nov 20, 2019
1 parent 66c564b commit ce15d1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/profiling/profiling.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func IsEnabled() bool {
return atomic.LoadUint32(&profilingEnabled) > 0
}

// SetEnabled turns profiling on and off.
// Enable turns profiling on and off.
//
// Note that it is impossible to enable profiling for one server and leave it
// turned off for another. This is intentional and by design -- if the status
Expand All @@ -58,7 +58,7 @@ func IsEnabled() bool {
// whether it's a client stat or a server stat; so you should be able to filter
// for the right type of stats in post-processing.
// SetEnabled is the internal
func SetEnabled(enabled bool) {
func Enable(enabled bool) {
if enabled {
atomic.StoreUint32(&profilingEnabled, 1)
} else {
Expand Down

0 comments on commit ce15d1b

Please sign in to comment.