diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2018-12-20 06:51:01 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-20 06:51:01 -0800 |
commit | 65c5883f5c887c567bf0db30af1e178ac052261c (patch) | |
tree | fbfae00924d46832747c6d2f64b45937200cb5a8 /vendor/github.com/pkg/profile/mutex.go | |
parent | 2de6cadd6f81b69f33485e4d4601606afbefd748 (diff) | |
parent | 658f772c16da05807c2c079449e8ac71fd6f55c5 (diff) | |
download | podman-65c5883f5c887c567bf0db30af1e178ac052261c.tar.gz podman-65c5883f5c887c567bf0db30af1e178ac052261c.tar.bz2 podman-65c5883f5c887c567bf0db30af1e178ac052261c.zip |
Merge pull request #1757 from kunalkushwaha/contrib-perftest
perf test a stress test to profile CPU load of podman
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) +} |