Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 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. 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)
  3. 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)
Back to top