- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 75 for memState (0.11 sec)
-
pkg/ctrlz/topics/mem.go
ms := &runtime.MemStats{} runtime.ReadMemStats(ms) fw.RenderHTML(w, tmpl, ms) }) _ = context.JSONRouter().StrictSlash(true).NewRoute().Methods("GET").Path("/").HandlerFunc(func(w http.ResponseWriter, req *http.Request) { ms := &runtime.MemStats{} runtime.ReadMemStats(ms) fw.RenderJSON(w, http.StatusOK, ms) })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 14:06:41 UTC 2023 - 1.8K bytes - Viewed (0) -
src/runtime/metrics.go
a.stacksSys = memstats.stacks_sys.load() 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()
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/mcache.go
// Count up how many slots were used and record it. stats := memstats.heapStats.acquire() slotsUsed := int64(s.allocCount) - int64(s.allocCountBeforeCache) atomic.Xadd64(&stats.smallAllocCount[spc.sizeclass()], slotsUsed) // Flush tinyAllocs. if spc == tinySpanClass { atomic.Xadd64(&stats.tinyAllocCount, int64(c.tinyAllocs)) c.tinyAllocs = 0 } memstats.heapStats.release()
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/mgc.go
work.tEnd = now atomic.Store64(&memstats.last_gc_unix, uint64(unixNow)) // must be Unix time to make sense to user atomic.Store64(&memstats.last_gc_nanotime, uint64(now)) // monotonic time for us memstats.pause_ns[memstats.numgc%uint32(len(memstats.pause_ns))] = uint64(work.pauseNS) memstats.pause_end[memstats.numgc%uint32(len(memstats.pause_end))] = uint64(unixNow) memstats.pause_total_ns += uint64(work.pauseNS)
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/traceregion.go
for a.full != nil { block := a.full a.full = block.next sysFree(unsafe.Pointer(block), unsafe.Sizeof(traceRegionAllocBlock{}), &memstats.other_sys) } if current := a.current.Load(); current != nil { sysFree(current, unsafe.Sizeof(traceRegionAllocBlock{}), &memstats.other_sys) a.current.Store(nil) } a.dropping.Store(false)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:47:01 UTC 2024 - 3.2K bytes - Viewed (0) -
src/expvar/expvar.go
return os.Args } func memstats() any { stats := new(runtime.MemStats) runtime.ReadMemStats(stats) return *stats } func init() { if godebug.New("httpmuxgo121").Value() == "1" { http.HandleFunc("/debug/vars", expvarHandler) } else { http.HandleFunc("GET /debug/vars", expvarHandler) } Publish("cmdline", Func(cmdline)) Publish("memstats", Func(memstats)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 21:32:11 UTC 2024 - 9.1K bytes - Viewed (0) -
src/runtime/align_runtime_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 1.8K bytes - Viewed (0) -
test/fixedbugs/issue15277.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 851 bytes - Viewed (0) -
src/runtime/heapdump.go
dumpint(uint64(uintptr(unsafe.Pointer(mp)))) dumpint(uint64(mp.id)) dumpint(mp.procid) } } //go:systemstack func dumpmemstats(m *MemStats) { assertWorldStopped() // These ints should be identical to the exported // MemStats structure and should be ordered the same // way too. dumpint(tagMemStats) dumpint(m.Alloc) dumpint(m.TotalAlloc) dumpint(m.Sys) dumpint(m.Lookups)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 17.6K bytes - Viewed (0) -
src/runtime/debug/garbage_test.go
import ( "internal/testenv" "os" "runtime" . "runtime/debug" "testing" "time" ) func TestReadGCStats(t *testing.T) { defer SetGCPercent(SetGCPercent(-1)) var stats GCStats var mstats runtime.MemStats var min, max time.Duration // First ReadGCStats will allocate, second should not, // especially if we follow up with an explicit garbage collection. stats.PauseQuantiles = make([]time.Duration, 10)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 19 14:30:00 UTC 2023 - 7.2K bytes - Viewed (0)