- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for IdleTime (0.27 sec)
-
src/runtime/mgclimit.go
assistTime := l.assistTimePool.Load() if assistTime != 0 { l.assistTimePool.Add(-assistTime) } // Drain the pool of idle time. idleTime := l.idleTimePool.Load() if idleTime != 0 { l.idleTimePool.Add(-idleTime) } if !l.test { // Consume time from in-flight events. Make sure we're not preemptible so allp can't change. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 22:07:41 UTC 2024 - 17.3K bytes - Viewed (0) -
src/runtime/mstats.go
// Update total CPU. s.TotalTime = sched.totaltime + (now-sched.procresizetime)*int64(gomaxprocs) s.IdleTime += sched.idleTime.Load() // Compute userTime. We compute this indirectly as everything that's not the above. // // Since time spent in _Pgcstop is covered by gcPauseTime, and time spent in _Pidle // is covered by idleTime, what we're left with is time spent in _Prunning and _Psyscall,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 21:03:13 UTC 2024 - 34.2K bytes - Viewed (0) -
src/runtime/metrics_test.go
} total := gcTotal + scavTotal + stats.IdleTime + stats.UserTime if total != stats.TotalTime { t.Errorf("manually computed overall total does not match TotalTime: %d cpu-ns vs. %d cpu-ns", total, stats.TotalTime) } if total == 0 { t.Error("total time is zero") } if gcTotal == 0 { t.Error("GC total time is zero") } if stats.IdleTime == 0 { t.Error("idle time is zero") } }
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/metrics.go
}, "/cpu/classes/idle:cpu-seconds": { deps: makeStatDepSet(cpuStatsDep), compute: func(in *statAggregate, out *metricValue) { out.kind = metricKindFloat64 out.scalar = float64bits(nsToSec(in.cpuStats.IdleTime)) }, }, "/cpu/classes/scavenge/assist:cpu-seconds": { deps: makeStatDepSet(cpuStatsDep), compute: func(in *statAggregate, out *metricValue) { out.kind = metricKindFloat64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 21:03:13 UTC 2024 - 26K bytes - Viewed (0) -
src/runtime/runtime2.go
// as the sum of time a G spends in the _Grunnable state before // it transitions to _Grunning. timeToRun timeHistogram // idleTime is the total CPU time Ps have "spent" idle. // // Reset on each GC cycle. idleTime atomic.Int64 // totalMutexWaitTime is the sum of time goroutines have spent in _Gwaiting // with a waitreason of the form waitReasonSync{RW,}Mutex{R,}Lock.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 47.9K bytes - Viewed (0)