Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for HeapGoal (0.19 sec)

  1. 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)
  2. src/runtime/traceruntime.go

    }
    
    // HeapGoal reads the current heap goal and emits a HeapGoal event.
    func (tl traceLocker) HeapGoal() {
    	heapGoal := gcController.heapGoal()
    	if heapGoal == ^uint64(0) {
    		// Heap-based triggering is disabled.
    		heapGoal = 0
    	}
    	tl.eventWriter(traceGoRunning, traceProcRunning).commit(traceEvHeapGoal, traceArg(heapGoal))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  3. src/runtime/metrics.go

    	a.buckHashSys = memstats.buckhash_sys.load()
    	a.gcMiscSys = memstats.gcMiscSys.load()
    	a.otherSys = memstats.other_sys.load()
    	a.heapGoal = gcController.heapGoal()
    	a.gcCyclesDone = uint64(memstats.numgc)
    	a.gcCyclesForced = uint64(memstats.numforcedgc)
    
    	systemstack(func() {
    		lock(&mheap_.lock)
    		a.mSpanSys = memstats.mspan_sys.load()
    		a.mSpanInUse = uint64(mheap_.spanalloc.inuse)
    		a.mCacheSys = memstats.mcache_sys.load()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 26K bytes
    - Viewed (0)
  4. src/internal/trace/event/go122/event.go

    	EvGCMarkAssistEnd    // GC mark assist done [timestamp]
    	EvHeapAlloc          // gcController.heapLive change [timestamp, heap alloc in bytes]
    	EvHeapGoal           // gcController.heapGoal() change [timestamp, heap goal in bytes]
    
    	// Annotations.
    	EvGoLabel         // apply string label to current running goroutine [timestamp, label string ID]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  5. src/cmd/trace/gen.go

    	m := ev.Metric()
    	switch m.Name {
    	case "/memory/classes/heap/objects:bytes":
    		ctx.HeapAlloc(ctx.elapsed(ev.Time()), m.Value.Uint64())
    	case "/gc/heap/goal:bytes":
    		ctx.HeapGoal(ctx.elapsed(ev.Time()), m.Value.Uint64())
    	case "/sched/gomaxprocs:threads":
    		ctx.Gomaxprocs(m.Value.Uint64())
    	}
    }
    
    // procRangeGenerator implements a generic handler for EventRange* events whose Scope.Kind is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. src/runtime/mstats.go

    		memstats.buckhash_sys.load() + memstats.gcMiscSys.load() + memstats.other_sys.load() +
    		stackInUse + gcWorkBufInUse + gcProgPtrScalarBitsInUse
    
    	heapGoal := gcController.heapGoal()
    
    	if doubleCheckReadMemStats {
    		// Only check this if we're debugging. It would be bad to crash an application
    		// just because the debugging stats are wrong. We mostly rely on tests to catch
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  7. src/internal/trace/traceviewer/emitter.go

    				InSyscall: int64(e.threadStats[ThreadStateInSyscall]),
    				// TODO(mknyszek): Why is InSyscallRuntime not included here?
    			},
    		})
    	}
    	e.prevThreadStats = e.threadStats
    }
    
    func (e *Emitter) HeapGoal(ts time.Duration, v uint64) {
    	// This cutoff at 1 PiB is a Workaround for https://github.com/golang/go/issues/63864.
    	//
    	// TODO(mknyszek): Remove this once the problem has been fixed.
    	const PB = 1 << 50
    	if v > PB {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:29:58 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  8. src/runtime/export_test.go

    	c.startCycle(0, gomaxprocs, gcTrigger{kind: gcTriggerHeap})
    }
    
    func (c *GCController) AssistWorkPerByte() float64 {
    	return c.assistWorkPerByte.Load()
    }
    
    func (c *GCController) HeapGoal() uint64 {
    	return c.heapGoal()
    }
    
    func (c *GCController) HeapLive() uint64 {
    	return c.heapLive.Load()
    }
    
    func (c *GCController) HeapMarked() uint64 {
    	return c.heapMarked
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  9. src/internal/trace/internal/oldtrace/parser.go

    	EvHeapAlloc         event.Type = 33 // gcController.heapLive change [timestamp, heap live bytes]
    	EvHeapGoal          event.Type = 34 // gcController.heapGoal change [timestamp, heap goal bytes]
    	EvTimerGoroutine    event.Type = 35 // denotes timer goroutine [timer goroutine id]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  10. src/runtime/trace.go

    	}
    
    	// Dump a snapshot of memory, if enabled.
    	if trace.enabledWithAllocFree {
    		traceSnapshotMemory(firstGen)
    	}
    
    	// Record the heap goal so we have it at the very beginning of the trace.
    	tl.HeapGoal()
    
    	// Make sure a ProcStatus is emitted for every P, while we're here.
    	for _, pp := range allp {
    		tl.writer().writeProcStatusForP(pp, pp == tl.mp.p.ptr()).end()
    	}
    	traceRelease(tl)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
Back to top