Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for readGCStats (0.2 sec)

  1. src/runtime/debug/stubs.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package debug
    
    import (
    	"time"
    )
    
    // Implemented in package runtime.
    func readGCStats(*[]time.Duration)
    func freeOSMemory()
    func setMaxStack(int) int
    func setGCPercent(int32) int32
    func setPanicOnFault(bool) bool
    func setMaxThreads(int) int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 03 15:12:04 UTC 2022
    - 435 bytes
    - Viewed (0)
  2. 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)
  3. 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)
Back to top