Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for meanDiv (0.37 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/driver/driver.go

    func sampleFormat(p *profile.Profile, sampleIndex string, mean bool) (value, meanDiv sampleValueFunc, v *profile.ValueType, err error) {
    	if len(p.SampleType) == 0 {
    		return nil, nil, nil, fmt.Errorf("profile has no samples")
    	}
    	index, err := p.SampleIndexByName(sampleIndex)
    	if err != nil {
    		return nil, nil, nil, err
    	}
    	value = valueExtractor(index)
    	if mean {
    		meanDiv = valueExtractor(0)
    	}
    	v = p.SampleType[index]
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    // total will only include samples with that label.
    func computeTotal(prof *profile.Profile, value, meanDiv func(v []int64) int64) int64 {
    	var div, total, diffDiv, diffTotal int64
    	for _, sample := range prof.Sample {
    		var d, v int64
    		v = value(sample.Value)
    		if meanDiv != nil {
    			d = meanDiv(sample.Value)
    		}
    		if v < 0 {
    			v = -v
    		}
    		total += v
    		div += d
    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