- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for readGCStats (0.11 sec)
-
src/runtime/debug/garbage_test.go
var mstats runtime.MemStats var min, max time.Duration // First ReadGCStats will allocate, second should not, // especially if we follow up with an explicit garbage collection. stats.PauseQuantiles = make([]time.Duration, 10) ReadGCStats(&stats) runtime.GC() // Assume these will return same data: no GC during ReadGCStats. ReadGCStats(&stats) runtime.ReadMemStats(&mstats) if stats.NumGC != int64(mstats.NumGC) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 19 14:30:00 UTC 2023 - 7.2K bytes - Viewed (0) -
cmd/admin-server-info.go
gcStats := debug.GCStats{ // If stats.PauseQuantiles is non-empty, ReadGCStats fills // it with quantiles summarizing the distribution of pause time. // For example, if len(stats.PauseQuantiles) is 5, it will be // filled with the minimum, 25%, 50%, 75%, and maximum pause times. PauseQuantiles: make([]time.Duration, 5), } debug.ReadGCStats(&gcStats) // Truncate GC stats to max 5 entries. if len(gcStats.PauseEnd) > 5 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 4.9K bytes - Viewed (0)