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

Method encode

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

Source from the content-addressed store, hash-verified

424}
425
426func (p *Sample) encode(b *buffer) {
427 encodeUint64s(b, 1, p.locationIDX)
428 encodeInt64s(b, 2, p.Value)
429 for _, x := range p.labelX {
430 encodeMessage(b, 3, x)
431 }
432}
433
434var sampleDecoder = []decoder{
435 nil, // 0

Callers

nothing calls this directly

Calls 3

encodeUint64sFunction · 0.85
encodeInt64sFunction · 0.85
encodeMessageFunction · 0.85

Tested by

no test coverage detected