add mutex profiling option

This commit is contained in:
James Cor
2026-02-17 12:19:24 -08:00
parent f01974e834
commit c161f7c45f

View File

@@ -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])
}