Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for SampleType (0.27 sec)

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

    		for i, st := range p.SampleType {
    			if sampleType[i] == nil {
    				ratios[i] = 1
    				continue
    			}
    			ratios[i], _ = Scale(1, st.Unit, sampleType[i].Unit)
    			p.SampleType[i].Unit = sampleType[i].Unit
    		}
    		if err := p.ScaleN(ratios); err != nil {
    			return fmt.Errorf("scale: %v", err)
    		}
    	}
    	return nil
    }
    
    // CommonValueType returns the finest type from a set of compatible
    // types.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. src/internal/profile/profile.go

    	}
    
    	if len(p.SampleType) != len(pb.SampleType) {
    		return fmt.Errorf("incompatible sample types %v and %v", p.SampleType, pb.SampleType)
    	}
    
    	for i := range p.SampleType {
    		if !compatibleValueTypes(p.SampleType[i], pb.SampleType[i]) {
    			return fmt.Errorf("incompatible sample types %v and %v", p.SampleType, pb.SampleType)
    		}
    	}
    
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 17:57:40 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/profile/merge.go

    	}
    
    	if len(p.SampleType) != len(pb.SampleType) {
    		return fmt.Errorf("incompatible sample types %v and %v", p.SampleType, pb.SampleType)
    	}
    
    	for i := range p.SampleType {
    		if !equalValueType(p.SampleType[i], pb.SampleType[i]) {
    			return fmt.Errorf("incompatible sample types %v and %v", p.SampleType, pb.SampleType)
    		}
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17K bytes
    - Viewed (0)
  4. src/runtime/pprof/proto_test.go

    	}
    	if !reflect.DeepEqual(p.PeriodType, periodType) {
    		t.Errorf("p.PeriodType = %v\nwant = %v", fmtJSON(p.PeriodType), fmtJSON(periodType))
    	}
    	if !reflect.DeepEqual(p.SampleType, sampleType) {
    		t.Errorf("p.SampleType = %v\nwant = %v", fmtJSON(p.SampleType), fmtJSON(sampleType))
    	}
    	if defaultSampleType != p.DefaultSampleType {
    		t.Errorf("p.DefaultSampleType = %v\nwant = %v", p.DefaultSampleType, defaultSampleType)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 23:21:53 UTC 2024
    - 17K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/profile/profile.go

    		return
    	}
    	ratios := make([]float64, len(p.SampleType))
    	for i := range p.SampleType {
    		ratios[i] = ratio
    	}
    	p.ScaleN(ratios)
    }
    
    // ScaleN multiplies each sample values in a sample by a different amount
    // and keeps only samples that have at least one non-zero value.
    func (p *Profile) ScaleN(ratios []float64) error {
    	if len(p.SampleType) != len(ratios) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/profile/encode.go

    }
    
    var profileDecoder = []decoder{
    	nil, // 0
    	// repeated ValueType sample_type = 1
    	func(b *buffer, m message) error {
    		x := new(ValueType)
    		pp := m.(*Profile)
    		pp.SampleType = append(pp.SampleType, x)
    		return decodeMessage(b, x)
    	},
    	// repeated Sample sample = 2
    	func(b *buffer, m message) error {
    		x := new(Sample)
    		pp := m.(*Profile)
    		pp.Sample = append(pp.Sample, x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. src/runtime/pprof/protomem_test.go

    		{AllocBytes: 512 * 1024, FreeBytes: 512 * 1024, AllocObjects: 1, FreeObjects: 1, Stack: []uintptr{a1 + 1, a1 + 2, a2 + 3}},
    	}
    
    	periodType := &profile.ValueType{Type: "space", Unit: "bytes"}
    	sampleType := []*profile.ValueType{
    		{Type: "alloc_objects", Unit: "count"},
    		{Type: "alloc_space", Unit: "bytes"},
    		{Type: "inuse_objects", Unit: "count"},
    		{Type: "inuse_space", Unit: "bytes"},
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/profile/legacy_java_profile.go

    				if value != "java" {
    					return nil, errUnrecognized
    				}
    			case "heap/resolution":
    				p.SampleType = []*ValueType{
    					{Type: "inuse_objects", Unit: "count"},
    					{Type: "inuse_space", Unit: value},
    				}
    			case "contention/resolution":
    				p.SampleType = []*ValueType{
    					{Type: "contentions", Unit: "count"},
    					{Type: "delay", Unit: value},
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    func NewDefault(prof *profile.Profile, options Options) *Report {
    	index := len(prof.SampleType) - 1
    	o := &options
    	if o.Title == "" && len(prof.Mapping) > 0 && prof.Mapping[0].File != "" {
    		o.Title = filepath.Base(prof.Mapping[0].File)
    	}
    	o.SampleType = prof.SampleType[index].Type
    	o.SampleUnit = strings.ToLower(prof.SampleType[index].Unit)
    	o.SampleValue = func(v []int64) int64 {
    		return v[index]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/internal/driver/driver.go

    	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
    }
    
    func valueExtractor(ix int) sampleValueFunc {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top