Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DiffBaseSample (0.24 sec)

  1. src/cmd/vendor/github.com/google/pprof/profile/profile.go

    func (p *Profile) RemoveNumLabel(key string) {
    	for _, sample := range p.Sample {
    		delete(sample.NumLabel, key)
    		delete(sample.NumUnit, key)
    	}
    }
    
    // DiffBaseSample returns true if a sample belongs to the diff base and false
    // otherwise.
    func (s *Sample) DiffBaseSample() bool {
    	return s.HasLabel("pprof::base", "true")
    }
    
    // Scale multiplies all sample values in a profile by a constant and keeps
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    		var d, v int64
    		v = value(sample.Value)
    		if meanDiv != nil {
    			d = meanDiv(sample.Value)
    		}
    		if v < 0 {
    			v = -v
    		}
    		total += v
    		div += d
    		if sample.DiffBaseSample() {
    			diffTotal += v
    			diffDiv += d
    		}
    	}
    	if diffTotal > 0 {
    		total = diffTotal
    		div = diffDiv
    	}
    	if div != 0 {
    		return total / div
    	}
    	return total
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
Back to top