Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for NumLabel (0.18 sec)

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

    	values = append(values, s.Label[k]...)
    	numLabels := s.NumLabel[k]
    	numUnits := s.NumUnit[k]
    	if len(numLabels) != len(numUnits) && len(numUnits) != 0 {
    		return values
    	}
    	for i, numLabel := range numLabels {
    		var value string
    		if len(numUnits) != 0 {
    			value = measurement.ScaledLabel(numLabel, numUnits[i], outputUnit)
    		} else {
    			value = measurement.ScaledLabel(numLabel, "", "")
    		}
    		values = append(values, value)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  2. src/runtime/pprof/protomem_test.go

    				{ID: 1, Mapping: map1, Address: addr1},
    				{ID: 2, Mapping: map2, Address: addr2},
    			},
    			NumLabel: map[string][]int64{"bytes": {1024}},
    		},
    		{
    			Value: []int64{1, 829411, 1, 829411},
    			Location: []*profile.Location{
    				{ID: 3, Mapping: map2, Address: addr2 + 1},
    				{ID: 4, Mapping: map2, Address: addr2 + 2},
    			},
    			NumLabel: map[string][]int64{"bytes": {512 * 1024}},
    		},
    		{
    			Value: []int64{1, 829411, 0, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/driver/driver_focus.go

    		}
    		if wantKey == "" {
    			return func(s *profile.Sample) bool {
    				for key, vals := range s.NumLabel {
    					if labelFilter(vals, numLabelUnit(key)) {
    						return true
    					}
    				}
    				return false
    			}, nil
    		}
    		return func(s *profile.Sample) bool {
    			if vals, ok := s.NumLabel[wantKey]; ok {
    				return labelFilter(vals, numLabelUnit(wantKey))
    			}
    			return false
    		}, nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 22 23:33:06 UTC 2020
    - 6.4K bytes
    - Viewed (0)
  4. src/internal/profile/filter.go

    		for _, val := range vals {
    			if ignore != nil && ignore(key, val, 0) {
    				im = true
    			}
    			if !fm && focus(key, val, 0) {
    				fm = true
    			}
    		}
    	}
    	for key, vals := range s.NumLabel {
    		for _, val := range vals {
    			if ignore != nil && ignore(key, "", val) {
    				im = true
    			}
    			if !fm && focus(key, "", val) {
    				fm = true
    			}
    		}
    	}
    	return fm, im
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 17:57:40 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/profile/filter.go

    		return !matchShow || matchHide
    	}
    	for _, s := range p.Sample {
    		for lab := range s.Label {
    			if matchRemove(lab) {
    				delete(s.Label, lab)
    			}
    		}
    		for lab := range s.NumLabel {
    			if matchRemove(lab) {
    				delete(s.NumLabel, lab)
    			}
    		}
    	}
    	return
    }
    
    // matchesName returns whether the location matches the regular
    // expression. It checks any available function names, file names, and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/profile/legacy_java_profile.go

    			switch pType {
    			case "heap":
    				const javaHeapzSamplingRate = 524288 // 512K
    				if s.Value[0] == 0 {
    					return nil, nil, fmt.Errorf("parsing sample %s: second value must be non-zero", line)
    				}
    				s.NumLabel = map[string][]int64{"bytes": {s.Value[1] / s.Value[0]}}
    				s.Value[0], s.Value[1] = scaleHeapSample(s.Value[0], s.Value[1], javaHeapzSamplingRate)
    			case "contention":
    				if period := p.Period; period != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top