DiffBaseSample returns true if a sample belongs to the diff base and false otherwise.
()
| 770 | // DiffBaseSample returns true if a sample belongs to the diff base and false |
| 771 | // otherwise. |
| 772 | func (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. |