- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ReadCPUStats (0.14 sec)
-
src/runtime/metrics_test.go
// Set GOMAXPROCS high then sleep briefly to ensure we generate // some idle time. oldmaxprocs := runtime.GOMAXPROCS(10) time.Sleep(time.Millisecond) runtime.GOMAXPROCS(oldmaxprocs) stats := runtime.ReadCPUStats() gcTotal := stats.GCAssistTime + stats.GCDedicatedTime + stats.GCIdleTime + stats.GCPauseTime if gcTotal != stats.GCTotalTime {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 45K bytes - Viewed (0) -
src/runtime/export_test.go
return (*profBuf)(p).read(mode) } func (p *ProfBuf) Close() { (*profBuf)(p).close() } type CPUStats = cpuStats func ReadCPUStats() CPUStats { return work.cpuStats } func ReadMetricsSlow(memStats *MemStats, samplesp unsafe.Pointer, len, cap int) { stw := stopTheWorld(stwForTestReadMetricsSlow)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0)