From 658f772c16da05807c2c079449e8ac71fd6f55c5 Mon Sep 17 00:00:00 2001 From: Kunal Kushwaha Date: Fri, 26 Oct 2018 14:47:52 +0900 Subject: perf test a stress test to profile CPU load of podman Signed-off-by: Kunal Kushwaha --- vendor/github.com/pkg/profile/mutex.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 vendor/github.com/pkg/profile/mutex.go (limited to 'vendor/github.com/pkg/profile/mutex.go') 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) +} -- cgit v1.2.3-54-g00ecf