diff --git a/go/cmd/dolt/dolt.go b/go/cmd/dolt/dolt.go index 69aee66e81..2a1a6b7876 100644 --- a/go/cmd/dolt/dolt.go +++ b/go/cmd/dolt/dolt.go @@ -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]) }