Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for MemProfileRecord (0.39 sec)

  1. src/internal/profilerecord/profilerecord.go

    package profilerecord
    
    type StackRecord struct {
    	Stack []uintptr
    }
    
    type MemProfileRecord struct {
    	AllocBytes, FreeBytes     int64
    	AllocObjects, FreeObjects int64
    	Stack                     []uintptr
    }
    
    func (r *MemProfileRecord) InUseBytes() int64   { return r.AllocBytes - r.FreeBytes }
    func (r *MemProfileRecord) InUseObjects() int64 { return r.AllocObjects - r.FreeObjects }
    
    type BlockProfileRecord struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 815 bytes
    - Viewed (0)
  2. test/heapsampling.go

    	// The loop should only execute one iteration in the common case.
    	var p []runtime.MemProfileRecord
    	n, ok := runtime.MemProfile(nil, true)
    	for {
    		// Allocate room for a slightly bigger profile,
    		// in case a few more entries have been added
    		// since the call to MemProfile.
    		p = make([]runtime.MemProfileRecord, n+50)
    		n, ok = runtime.MemProfile(p, true)
    		if ok {
    			p = p[0:n]
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 27 21:36:06 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  3. test/finprofiled.go

    	for i := 0; i < 5; i++ {
    		runtime.GC()
    		time.Sleep(10 * time.Millisecond)
    	}
    	// Read memory profile.
    	var prof []runtime.MemProfileRecord
    	for {
    		if n, ok := runtime.MemProfile(prof, false); ok {
    			prof = prof[:n]
    			break
    		} else {
    			prof = make([]runtime.MemProfileRecord, n+10)
    		}
    	}
    	// See how much memory in tiny objects is profiled.
    	var totalBytes int64
    	for _, p := range prof {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 05:48:00 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. src/runtime/pprof/protomem_test.go

    	addr1, addr2, map1, map2 := testPCs(t)
    
    	// MemProfileRecord stacks are return PCs, so add one to the
    	// addresses recorded in the "profile". The proto profile
    	// locations are call PCs, so conversion will subtract one
    	// from these and get back to addr1 and addr2.
    	a1, a2 := uintptr(addr1)+1, uintptr(addr2)+1
    	rate := int64(512 * 1024)
    	rec := []profilerecord.MemProfileRecord{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. 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)
  6. src/runtime/pprof/protomem.go

    import (
    	"internal/profilerecord"
    	"io"
    	"math"
    	"runtime"
    	"strings"
    )
    
    // writeHeapProto writes the current heap profile in protobuf format to w.
    func writeHeapProto(w io.Writer, p []profilerecord.MemProfileRecord, rate int64, defaultSampleType string) error {
    	b := newProfileBuilder(w)
    	b.pbValueType(tagProfile_PeriodType, "space", "bytes")
    	b.pb.int64Opt(tagProfile_Period, rate)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. src/runtime/pprof/pprof.go

    	// The loop should only execute one iteration in the common case.
    	var p []profilerecord.MemProfileRecord
    	n, ok := pprof_memProfileInternal(nil, true)
    	for {
    		// Allocate room for a slightly bigger profile,
    		// in case a few more entries have been added
    		// since the call to MemProfile.
    		p = make([]profilerecord.MemProfileRecord, n+50)
    		n, ok = pprof_memProfileInternal(p, true)
    		if ok {
    			p = p[0:n]
    			break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"LockOSThread", Func, 0},
    		{"MemProfile", Func, 0},
    		{"MemProfileRate", Var, 0},
    		{"MemProfileRecord", Type, 0},
    		{"MemProfileRecord.AllocBytes", Field, 0},
    		{"MemProfileRecord.AllocObjects", Field, 0},
    		{"MemProfileRecord.FreeBytes", Field, 0},
    		{"MemProfileRecord.FreeObjects", Field, 0},
    		{"MemProfileRecord.Stack0", Field, 0},
    		{"MemStats", Type, 0},
    		{"MemStats.Alloc", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  9. 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)
  10. api/go1.txt

    pkg runtime, type Func struct
    pkg runtime, type MemProfileRecord struct
    pkg runtime, type MemProfileRecord struct, AllocBytes int64
    pkg runtime, type MemProfileRecord struct, AllocObjects int64
    pkg runtime, type MemProfileRecord struct, FreeBytes int64
    pkg runtime, type MemProfileRecord struct, FreeObjects int64
    pkg runtime, type MemProfileRecord struct, Stack0 [32]uintptr
    pkg runtime, type MemStats struct
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top