- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for memstats (0.12 sec)
-
test/gc2.go
func main() { const N = 10000 st := new(runtime.MemStats) memstats := new(runtime.MemStats) runtime.ReadMemStats(st) for i := 0; i < N; i++ { c := make(chan int, 10) _ = c if i%100 == 0 { for j := 0; j < 4; j++ { runtime.GC() runtime.Gosched() runtime.GC() runtime.Gosched() } } } runtime.ReadMemStats(memstats) obj := int64(memstats.HeapObjects - st.HeapObjects) if obj > N/5 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 977 bytes - Viewed (0) -
cmd/admin-server-info.go
Uptime: UTCNow().Unix() - globalBootTime.Unix(), Version: Version, CommitID: CommitID, Network: network, MemStats: madmin.MemStats{ Alloc: memstats.Alloc, TotalAlloc: memstats.TotalAlloc, Mallocs: memstats.Mallocs, Frees: memstats.Frees, HeapAlloc: memstats.HeapAlloc, }, GoMaxProcs: runtime.GOMAXPROCS(0), NumCPU: runtime.NumCPU(),
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 4.9K bytes - Viewed (0) -
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/align_runtime_test.go
unsafe.Offsetof(heapStatsDelta{}.inStacks), unsafe.Offsetof(heapStatsDelta{}.inPtrScalarBits), unsafe.Offsetof(heapStatsDelta{}.inWorkBufs), unsafe.Offsetof(lfnode{}.next), unsafe.Offsetof(mstats{}.last_gc_nanotime), unsafe.Offsetof(mstats{}.last_gc_unix), unsafe.Offsetof(workType{}.bytesMarked), } // AtomicVariables is the set of global variables on which we perform // 64-bit atomic operations.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 1.8K 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/runtime/debug/garbage_test.go
ReadGCStats(&stats) runtime.ReadMemStats(&mstats) if stats.NumGC != int64(mstats.NumGC) { t.Errorf("stats.NumGC = %d, but mstats.NumGC = %d", stats.NumGC, mstats.NumGC) } if stats.PauseTotal != time.Duration(mstats.PauseTotalNs) { t.Errorf("stats.PauseTotal = %d, but mstats.PauseTotalNs = %d", stats.PauseTotal, mstats.PauseTotalNs) } if stats.LastGC.UnixNano() != int64(mstats.LastGC) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 19 14:30:00 UTC 2023 - 7.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) -
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) -
pkg/ctrlz/home.go
} type homeInfo struct { ProcessName string HeapSize uint64 NumGC uint32 CurrentTime int64 Hostname string IP string } func getHomeInfo() *homeInfo { var ms runtime.MemStats runtime.ReadMemStats(&ms) hostName, _ := os.Hostname() return &homeInfo{ ProcessName: os.Args[0], HeapSize: ms.HeapAlloc, NumGC: ms.NumGC, CurrentTime: time.Now().UnixNano(),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 14:06:41 UTC 2023 - 2.5K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/cgonoescape.go
//go:noinline func withoutNoEscape() { var str string C.runCWithoutNoEscape(unsafe.Pointer(&str)) } func CgoNoEscape() { // make GC stop to see the heap objects allocated debug.SetGCPercent(-1) var stats runtime.MemStats runtime.ReadMemStats(&stats) preHeapObjects := stats.HeapObjects for i := 0; i < num; i++ { withNoEscape() } runtime.ReadMemStats(&stats) nowHeapObjects := stats.HeapObjects
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 16:43:23 UTC 2023 - 1.8K bytes - Viewed (0)