Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MemProfileRecord (0.25 sec)

  1. src/runtime/mprof.go

    // is not used and the link type guarantees nobody else could use it
    // elsewhere.
    var disableMemoryProfiling bool
    
    // A MemProfileRecord describes the live objects allocated
    // by a particular call sequence (stack trace).
    type MemProfileRecord struct {
    	AllocBytes, FreeBytes     int64       // number of bytes allocated, freed
    	AllocObjects, FreeObjects int64       // number of objects allocated, freed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  2. src/runtime/pprof/pprof_test.go

    	}
    	for i := range prefix {
    		if stk[i] != prefix[i] {
    			return false
    		}
    	}
    	return true
    }
    
    // ensure that stack records are valid map keys (comparable)
    var _ = map[runtime.MemProfileRecord]struct{}{}
    var _ = map[runtime.StackRecord]struct{}{}
    
    // allocDeep calls itself n times before calling fn.
    func allocDeep(n int) {
    	if n > 1 {
    		allocDeep(n - 1)
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
Back to top