Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for NumGC (0.06 sec)

  1. pkg/ctrlz/assets/templates/home.html

        </tr>
    
        <tr>
            <td>Heap Size</td>
            <td id="HeapSize">{{.HeapSize}} bytes</td>
        </tr>
    
        <tr>
            <td>Num Garbage Collections</td>
            <td id="NumGC">{{.NumGC}}</td>
        </tr>
    
        <tr>
            <td>Current Time</td>
            <td id="CurrentTime"></td>
        </tr>
    
        <script>
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. test/init1.go

    	runtime.ReadMemStats(memstats)
    	sys, numGC := memstats.Sys, memstats.NumGC
    
    	// Generate 1,000 MB of garbage, only retaining 1 MB total.
    	for i := 0; i < N; i++ {
    		x = []byte(s)
    	}
    
    	// Verify that the garbage collector ran by seeing if we
    	// allocated fewer than N*MB bytes from the system.
    	runtime.ReadMemStats(memstats)
    	sys1, numGC1 := memstats.Sys, memstats.NumGC
    	if sys1-sys >= N*MB || numGC1 == numGC {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.1K bytes
    - Viewed (0)
  3. src/runtime/debug/garbage_test.go

    	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) {
    		t.Errorf("stats.NumGC = %d, but mstats.NumGC = %d", stats.NumGC, mstats.NumGC)
    	}
    	if stats.PauseTotal != time.Duration(mstats.PauseTotalNs) {
    		t.Errorf("stats.PauseTotal = %d, but mstats.PauseTotalNs = %d", stats.PauseTotal, mstats.PauseTotalNs)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 14:30:00 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  4. pkg/ctrlz/home.go

    type homeInfo struct {
    	ProcessName string
    	HeapSize    uint64
    	NumGC       uint32
    	CurrentTime int64
    	Hostname    string
    	IP          string
    }
    
    func getHomeInfo() *homeInfo {
    	var ms runtime.MemStats
    	runtime.ReadMemStats(&ms)
    
    	hostName, _ := os.Hostname()
    
    	return &homeInfo{
    		ProcessName: os.Args[0],
    		HeapSize:    ms.HeapAlloc,
    		NumGC:       ms.NumGC,
    		CurrentTime: time.Now().UnixNano(),
    		Hostname:    hostName,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. pkg/ctrlz/topics/assets/templates/mem.html

            <td>PauseTotalNs</td>
            <td id="PauseTotalNs">{{.PauseTotalNs}} ns</td>
            <td>Cumulative time spent in GC stop-the-world pauses.</td>
        </tr>
    
        <tr>
            <td>NumGC</td>
            <td id="NumGC">{{.NumGC}} GC cycles</td>
            <td>Completed GC cycles.</td>
        </tr>
    
        <tr>
            <td>NumForcedGC</td>
            <td id="NumForcedGC">{{.NumForcedGC}} GC cycles</td>
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  6. src/runtime/malloc_test.go

    	}
    
    	if st.NumForcedGC > st.NumGC {
    		t.Fatalf("NumForcedGC(%d) > NumGC(%d)", st.NumForcedGC, st.NumGC)
    	}
    }
    
    func TestStringConcatenationAllocs(t *testing.T) {
    	n := testing.AllocsPerRun(1e3, func() {
    		b := make([]byte, 10)
    		for i := 0; i < 10; i++ {
    			b[i] = byte(i) + '0'
    		}
    		s := "foo" + string(b)
    		if want := "foo0123456789"; s != want {
    			t.Fatalf("want %v, got %v", want, s)
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  7. cmd/admin-server-info.go

    		},
    		GoMaxProcs:     runtime.GOMAXPROCS(0),
    		NumCPU:         runtime.NumCPU(),
    		RuntimeVersion: runtime.Version(),
    		GCStats: &madmin.GCStats{
    			LastGC:     gcStats.LastGC,
    			NumGC:      gcStats.NumGC,
    			PauseTotal: gcStats.PauseTotal,
    			Pause:      gcStats.Pause,
    			PauseEnd:   gcStats.PauseEnd,
    		},
    		MinioEnvVars: make(map[string]string, 10),
    	}
    
    	for poolNumber := range poolNumbers {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. src/sync/pool_test.go

    			}
    			for i, v := range items {
    				p.Put(v)
    				items[i] = nil
    			}
    		}
    		_ = sink
    	})
    	runtime.ReadMemStats(&mstats2)
    
    	b.ReportMetric(float64(mstats2.NumGC-mstats1.NumGC)/float64(b.N), "GCs/op")
    	b.ReportMetric(float64(nNew)/float64(b.N), "New/op")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. src/runtime/mstats.go

    	//
    	// This buffer is filled the same way as PauseNs. There may be
    	// multiple pauses per GC cycle; this records the end of the
    	// last pause in a cycle.
    	PauseEnd [256]uint64
    
    	// NumGC is the number of completed GC cycles.
    	NumGC uint32
    
    	// NumForcedGC is the number of GC cycles that were forced by
    	// the application calling the GC function.
    	NumForcedGC uint32
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  10. src/runtime/gc_test.go

    	var numGCs uint32
    	const want = 2
    	for i := 0; i < 200 && numGCs < want; i++ {
    		time.Sleep(5 * time.Millisecond)
    
    		// Test that periodic GC actually happened.
    		runtime.ReadMemStats(&ms2)
    		numGCs = ms2.NumGC - ms1.NumGC
    	}
    	*runtime.ForceGCPeriod = orig
    
    	if numGCs < want {
    		t.Fatalf("no periodic GC: got %v GCs, want >= 2", numGCs)
    	}
    }
    
    func TestGcZombieReporting(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top