mirror of
https://github.com/octoleo/restic.git
synced 2024-11-10 23:31:09 +00:00
14 lines
186 B
Go
14 lines
186 B
Go
|
// +build go1.8
|
||
|
|
||
|
package profile
|
||
|
|
||
|
import "runtime"
|
||
|
|
||
|
func enableMutexProfile() {
|
||
|
runtime.SetMutexProfileFraction(1)
|
||
|
}
|
||
|
|
||
|
func disableMutexProfile() {
|
||
|
runtime.SetMutexProfileFraction(0)
|
||
|
}
|