From c161f7c45fce9b2bebfe191a861b1ce74ec51c8f Mon Sep 17 00:00:00 2001 From: James Cor Date: Tue, 17 Feb 2026 12:19:24 -0800 Subject: [PATCH] add mutex profiling option --- go/cmd/dolt/dolt.go | 4 ++++ 1 file changed, 4 insertions(+) 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]) }