- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for mProf_Malloc (0.1 sec)
-
src/runtime/mprof.go
lock(&profMemActiveLock) lock(&profMemFutureLock[index]) mProf_FlushLocked(index) unlock(&profMemFutureLock[index]) unlock(&profMemActiveLock) } // Called by malloc to record a profiled block. func mProf_Malloc(mp *m, p unsafe.Pointer, size uintptr) { if mp.profStack == nil { // mp.profStack is nil if we happen to sample an allocation during the // initialization of mp. This case is rare, so we just ignore such
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 53.3K bytes - Viewed (0) -
src/runtime/malloc.go
func profilealloc(mp *m, x unsafe.Pointer, size uintptr) { c := getMCache(mp) if c == nil { throw("profilealloc called without a P or outside bootstrapping") } c.nextSample = nextSample() mProf_Malloc(mp, x, size) } // nextSample returns the next sampling point for heap profiling. The goal is // to sample allocations on average every MemProfileRate bytes, but with a
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 59.6K bytes - Viewed (0)