perf test a stress test to profile CPU load of podman

Signed-off-by: Kunal Kushwaha <kushwaha_kunal_v7@lab.ntt.co.jp>
This commit is contained in:
Kunal Kushwaha
2018-10-26 14:47:52 +09:00
parent c8eaf59d5f
commit 658f772c16
11 changed files with 703 additions and 0 deletions

13
vendor/github.com/pkg/profile/mutex.go generated vendored Normal file
View File

@@ -0,0 +1,13 @@
// +build go1.8
package profile
import "runtime"
func enableMutexProfile() {
runtime.SetMutexProfileFraction(1)
}
func disableMutexProfile() {
runtime.SetMutexProfileFraction(0)
}