summaryrefslogtreecommitdiff
path: root/vendor/github.com/pkg/profile/mutex.go
blob: e69c5b44d886912a7d77a09de4175816d223be8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// +build go1.8

package profile

import "runtime"

func enableMutexProfile() {
	runtime.SetMutexProfileFraction(1)
}

func disableMutexProfile() {
	runtime.SetMutexProfileFraction(0)
}