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

Method RemoveNumLabel

profile/profile.go:763–768  ·  view source on GitHub ↗

RemoveNumLabel removes all numerical labels associated with the specified key for all samples in the profile.

(key string)

Source from the content-addressed store, hash-verified

761// RemoveNumLabel removes all numerical labels associated with the specified key for all
762// samples in the profile.
763func (p *Profile) RemoveNumLabel(key string) {
764 for _, sample := range p.Sample {
765 delete(sample.NumLabel, key)
766 delete(sample.NumUnit, key)
767 }
768}
769
770// DiffBaseSample returns true if a sample belongs to the diff base and false
771// otherwise.

Callers 1

TestRemoveNumLabelFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestRemoveNumLabelFunction · 0.64