MCPcopy Create free account
hub / github.com/google/pprof / encode

Method encode

profile/encode.go:476–487  ·  view source on GitHub ↗
(b *buffer)

Source from the content-addressed store, hash-verified

474}
475
476func (p *Mapping) encode(b *buffer) {
477 encodeUint64Opt(b, 1, p.ID)
478 encodeUint64Opt(b, 2, p.Start)
479 encodeUint64Opt(b, 3, p.Limit)
480 encodeUint64Opt(b, 4, p.Offset)
481 encodeInt64Opt(b, 5, p.fileX)
482 encodeInt64Opt(b, 6, p.buildIDX)
483 encodeBoolOpt(b, 7, p.HasFunctions)
484 encodeBoolOpt(b, 8, p.HasFilenames)
485 encodeBoolOpt(b, 9, p.HasLineNumbers)
486 encodeBoolOpt(b, 10, p.HasInlineFrames)
487}
488
489var mappingDecoder = []decoder{
490 nil, // 0

Callers

nothing calls this directly

Calls 3

encodeUint64OptFunction · 0.85
encodeInt64OptFunction · 0.85
encodeBoolOptFunction · 0.85

Tested by

no test coverage detected