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

Method DiffBaseSample

profile/profile.go:772–774  ·  view source on GitHub ↗

DiffBaseSample returns true if a sample belongs to the diff base and false otherwise.

()

Source from the content-addressed store, hash-verified

770// DiffBaseSample returns true if a sample belongs to the diff base and false
771// otherwise.
772func (s *Sample) DiffBaseSample() bool {
773 return s.HasLabel("pprof::base", "true")
774}
775
776// Scale multiplies all sample values in a profile by a constant and keeps
777// only samples that have at least one non-zero value.

Callers 2

TestDiffBaseSampleFunction · 0.95
computeTotalFunction · 0.80

Calls 1

HasLabelMethod · 0.95

Tested by 1

TestDiffBaseSampleFunction · 0.76