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

Method encode

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

Source from the content-addressed store, hash-verified

505}
506
507func (p *Location) encode(b *buffer) {
508 encodeUint64Opt(b, 1, p.ID)
509 encodeUint64Opt(b, 2, p.mappingIDX)
510 encodeUint64Opt(b, 3, p.Address)
511 for i := range p.Line {
512 encodeMessage(b, 4, &p.Line[i])
513 }
514 encodeBoolOpt(b, 5, p.IsFolded)
515}
516
517var locationDecoder = []decoder{
518 nil, // 0

Callers

nothing calls this directly

Calls 3

encodeUint64OptFunction · 0.85
encodeMessageFunction · 0.85
encodeBoolOptFunction · 0.85

Tested by

no test coverage detected