github.com/grafana/pyroscope-go/godeltaprof@v0.1.8-0.20240513050943-1b1f97373e2a/internal/pprof/mutex_scale_go20.go (about) 1 //go:build go1.20 2 // +build go1.20 3 4 package pprof 5 6 type MutexProfileScaler struct { 7 } 8 9 // ScaleMutexProfile is a no-op for go1.20+. 10 // https://github.com/golang/go/commit/30b1af00ff142a3f1a5e2a0f32cf04a649bd5e65 11 func ScaleMutexProfile(_ MutexProfileScaler, cnt int64, ns float64) (int64, float64) { 12 return cnt, ns 13 } 14 15 var ScalerMutexProfile = MutexProfileScaler{} 16 17 var ScalerBlockProfile = MutexProfileScaler{}