RemoveNumLabel removes all numerical labels associated with the specified key for all samples in the profile.
(key string)
| 761 | // RemoveNumLabel removes all numerical labels associated with the specified key for all |
| 762 | // samples in the profile. |
| 763 | func (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. |
no outgoing calls