- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NumGoroutine (0.31 sec)
-
cmd/metrics-v2.go
} mg.RegisterRead(func(ctx context.Context) (metrics []MetricV2) { metrics = append(metrics, MetricV2{ Description: getMinIOGORoutineCountMD(), Value: float64(runtime.NumGoroutine()), }) return }) return mg } // getHistogramMetrics fetches histogram metrics and returns it in a []Metric // Note: Typically used in MetricGroup.RegisterRead //
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 25 22:01:31 GMT 2024 - 132.6K bytes - Viewed (0) -
cmd/metrics-v3-system-process.go
} } // loadProcessMetrics - `MetricsLoaderFn` for process metrics func loadProcessMetrics(ctx context.Context, m MetricValues, c *metricsCache) error { m.Set(processGoRoutineTotal, float64(runtime.NumGoroutine())) if !globalBootTime.IsZero() { m.Set(processUptimeSeconds, time.Since(globalBootTime).Seconds()) } p, err := procfs.Self() if err != nil { metricsLogIf(ctx, err) } else {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 26 16:07:23 GMT 2024 - 6.4K bytes - Viewed (0) -
cmd/utils.go
// unable to maintain its sampling rate and to significantly // degrade the performance of your application // https://github.com/felixge/fgprof#fgprof if n := runtime.NumGoroutine(); n > 10000 && !globalIsCICD { return nil, fmt.Errorf("unable to perform CPU IO profile with %d goroutines", n) } dirPath, err := os.MkdirTemp("", "profile") if err != nil { return nil, err }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed May 01 15:18:21 GMT 2024 - 31.4K bytes - Viewed (0)