mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-24 00:59:41 -06:00
add mutex profiling option
This commit is contained in:
@@ -200,6 +200,7 @@ const cpuProf = "cpu"
|
||||
const memProf = "mem"
|
||||
const blockingProf = "blocking"
|
||||
const traceProf = "trace"
|
||||
const mutexProf = "mutex"
|
||||
|
||||
const featureVersionFlag = "--feature-version"
|
||||
|
||||
@@ -264,6 +265,9 @@ func runMain() int {
|
||||
case traceProf:
|
||||
profileOpts = append(profileOpts, profile.TraceProfile)
|
||||
cli.Println("trace profiling enabled")
|
||||
case mutexProf:
|
||||
profileOpts = append(profileOpts, profile.MutexProfile)
|
||||
cli.Println("trace profiling enabled")
|
||||
default:
|
||||
panic("Unexpected prof flag: " + args[1])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user