- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for HeapLive (0.12 sec)
-
src/runtime/mgcpacer.go
lastHeapGoal uint64 // heapLive is the number of bytes considered live by the GC. // That is: retained by the most recent GC plus allocated // since then. heapLive ≤ memstats.totalAlloc-memstats.totalFree, since // heapAlloc includes unmarked objects that have not yet been swept (and // hence goes up as we allocate and down as we sweep) while heapLive // excludes these objects (and hence only goes up between GCs).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 55.4K bytes - Viewed (0) -
src/runtime/mcache.go
// Store the current alloc count for accounting later. s.allocCountBeforeCache = s.allocCount // Update heapLive and flush scanAlloc. // // We have not yet allocated anything new into the span, but we // assume that all of its slots will get used, so this makes // heapLive an overestimate. // // When the span gets uncached, we'll fix up this overestimate // if necessary (see releaseAll). //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 10K bytes - Viewed (0) -
src/runtime/mgcpacer_test.go
return float64(r.heapGoal - r.heapTrigger) } func (r *gcCycleResult) triggerRatio() float64 { return float64(r.heapTrigger-r.heapLive) / float64(r.heapGoal-r.heapLive) } func (r *gcCycleResult) String() string { return fmt.Sprintf("%d %2.1f%% %d->%d->%d (goal: %d)", r.cycle, r.gcUtilization*100, r.heapLive, r.heapTrigger, r.heapPeak, r.heapGoal) } func assertInEpsilon(t *testing.T, name string, a, b, epsilon float64) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 13:53:21 UTC 2023 - 39.3K bytes - Viewed (0) -
src/internal/trace/parser.go
EvGoInSyscall = 32 // denotes that goroutine is in syscall when tracing starts [timestamp, goroutine id] EvHeapAlloc = 33 // gcController.heapLive change [timestamp, heap live bytes] EvHeapGoal = 34 // gcController.heapGoal change [timestamp, heap goal bytes] EvTimerGoroutine = 35 // denotes timer goroutine [timer goroutine id]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:31:04 UTC 2024 - 4.7K bytes - Viewed (0) -
src/runtime/export_test.go
return c.heapGoal() } func (c *GCController) HeapLive() uint64 { return c.heapLive.Load() } func (c *GCController) HeapMarked() uint64 { return c.heapMarked } func (c *GCController) Triggered() uint64 { return c.triggered } type GCControllerReviseDelta struct { HeapLive int64 HeapScan int64 HeapScanWork int64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0) -
src/runtime/mgcsweep.go
throw("mismatched begin/end of activeSweep") } if a.state.CompareAndSwap(state, state-1) { if state != sweepDrainedMask { return } if debug.gcpacertrace > 0 { live := gcController.heapLive.Load() print("pacer: sweep done at heap size ", live>>20, "MB; allocated ", (live-mheap_.sweepHeapLiveBasis)>>20, "MB during sweep; swept ", mheap_.pagesSwept.Load(), " pages at ", mheap_.sweepPagesPerByte, " pages/byte\n") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:52:18 UTC 2024 - 32.9K bytes - Viewed (0) -
src/runtime/mgc.go
mode gcMode // userForced indicates the current GC cycle was forced by an // explicit user call. userForced bool // initialHeapLive is the value of gcController.heapLive at the // beginning of this GC cycle. initialHeapLive uint64 // assistQueue is a queue of assists that are blocked because // there was neither enough credit to steal or enough work to // do.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62K bytes - Viewed (0) -
src/runtime/traceevent.go
traceEvGCMarkAssistBegin // GC mark assist start [timestamp, stack ID] traceEvGCMarkAssistEnd // GC mark assist done [timestamp] traceEvHeapAlloc // gcController.heapLive change [timestamp, heap alloc in bytes] traceEvHeapGoal // gcController.heapGoal() change [timestamp, heap goal in bytes] // Annotations.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:47:01 UTC 2024 - 9.2K bytes - Viewed (0) -
src/runtime/arena.go
throw("newUserArenaChunk called with gcphase == _GCmarktermination") } // Deduct assist credit. Because user arena chunks are modeled as one // giant heap object which counts toward heapLive, we're obligated to // assist the GC proportionally (and it's worth noting that the arena // does represent additional work for the GC, but we also have no idea
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:44:56 UTC 2024 - 37.9K bytes - Viewed (0) -
src/internal/trace/event/go122/event.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 14.8K bytes - Viewed (0)