- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for AllocBytes (0.22 sec)
-
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) -
src/runtime/pprof/protomem.go
} hideRuntime = false // try again, and show all frames next time. } values[0], values[1] = scaleHeapSample(r.AllocObjects, r.AllocBytes, rate) values[2], values[3] = scaleHeapSample(r.InUseObjects(), r.InUseBytes(), rate) var blockSize int64 if r.AllocObjects > 0 { blockSize = r.AllocBytes / r.AllocObjects } b.pbSample(values, locs, func() { if blockSize != 0 { b.pbLabel(tagSample_Label, "bytes", "", blockSize)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 14:38:45 UTC 2024 - 2.9K bytes - Viewed (0) -
src/runtime/pprof/protomem_test.go
a1, a2 := uintptr(addr1)+1, uintptr(addr2)+1 rate := int64(512 * 1024) rec := []profilerecord.MemProfileRecord{ {AllocBytes: 4096, FreeBytes: 1024, AllocObjects: 4, FreeObjects: 1, Stack: []uintptr{a1, a2}}, {AllocBytes: 512 * 1024, FreeBytes: 0, AllocObjects: 1, FreeObjects: 0, Stack: []uintptr{a2 + 1, a2 + 2}}, {AllocBytes: 512 * 1024, FreeBytes: 512 * 1024, AllocObjects: 1, FreeObjects: 1, Stack: []uintptr{a1 + 1, a1 + 2, a2 + 3}}, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 14:38:45 UTC 2024 - 6.7K bytes - Viewed (0) -
src/runtime/pprof/pprof.go
// other 4-column profiles where alloc != inuse. // The easiest way to avoid this bug is to adjust allocBytes so it's never == inuseBytes. // pprof doesn't use these header values anymore except for checking equality. inUseBytes := total.InUseBytes() allocBytes := total.AllocBytes if inUseBytes == allocBytes { allocBytes++ } fmt.Fprintf(w, "heap profile: %d: %d [%d: %d] @ heap/%d\n",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 30.6K bytes - Viewed (0) -
test/finprofiled.go
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 { bytes := p.AllocBytes - p.FreeBytes nobj := p.AllocObjects - p.FreeObjects if nobj == 0 { // There may be a record that has had all of its objects // freed. That's fine. Avoid a divide-by-zero and skip. continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 05:48:00 UTC 2023 - 2.1K bytes - Viewed (0) -
src/math/big/nat_test.go
prod := string(nat(nil).mulRange(r.a, r.b).utoa(10)) if prod != r.prod { t.Errorf("#%d: got %s; want %s", i, prod, r.prod) } } } // allocBytes returns the number of bytes allocated by invoking f. func allocBytes(f func()) uint64 { var stats runtime.MemStats runtime.ReadMemStats(&stats) t := stats.TotalAlloc f() runtime.ReadMemStats(&stats) return stats.TotalAlloc - t }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 09 15:29:36 UTC 2024 - 26.2K bytes - Viewed (0) -
src/runtime/mprof.go
type MemProfileRecord struct { AllocBytes, FreeBytes int64 // number of bytes allocated, freed AllocObjects, FreeObjects int64 // number of objects allocated, freed Stack0 [32]uintptr // stack trace for this record; ends at first 0 entry } // InUseBytes returns the number of bytes in use (AllocBytes - FreeBytes).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 53.3K bytes - Viewed (0) -
test/heapsampling.go
line := 0 for { frame, more := frames.Next() name := frame.Function if line == 0 { line = frame.Line } if name == function { allocStat := a[line] allocStat.bytes += r.AllocBytes allocStat.objects += r.AllocObjects a[line] = allocStat } if !more { break } } } for line, stats := range a {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 27 21:36:06 UTC 2022 - 9.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"Gosched", Func, 0}, {"KeepAlive", Func, 7}, {"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},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
api/go1.txt
pkg runtime, type Error interface, Error() string pkg runtime, type Error interface, RuntimeError() 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
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)