diff options
Diffstat (limited to 'vendor/github.com/pkg/profile/mutex.go')
-rw-r--r-- | vendor/github.com/pkg/profile/mutex.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/pkg/profile/mutex.go b/vendor/github.com/pkg/profile/mutex.go new file mode 100644 index 000000000..e69c5b44d --- /dev/null +++ b/vendor/github.com/pkg/profile/mutex.go @@ -0,0 +1,13 @@ +// +build go1.8 + +package profile + +import "runtime" + +func enableMutexProfile() { + runtime.SetMutexProfileFraction(1) +} + +func disableMutexProfile() { + runtime.SetMutexProfileFraction(0) +} |