Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for NumLabel (0.22 sec)

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

    	Label map[string][]string
    	// NumLabel is a per-label-key map to values for numeric labels. See a note
    	// above on handling multiple values for a label.
    	NumLabel map[string][]int64
    	// NumUnit is a per-label-key map to the unit names of corresponding numeric
    	// label values. The unit info may be missing even if the label is in
    	// NumLabel, see the docs in profile.proto for details. When the value is
    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/profile/merge.go

    		Label:    make(map[string][]string, len(src.Label)),
    		NumLabel: make(map[string][]int64, len(src.NumLabel)),
    		NumUnit:  make(map[string][]string, len(src.NumLabel)),
    	}
    	for i, l := range src.Location {
    		s.Location[i] = pm.mapLocation(l)
    	}
    	for k, v := range src.Label {
    		vv := make([]string, len(v))
    		copy(vv, v)
    		s.Label[k] = vv
    	}
    	for k, v := range src.NumLabel {
    		u := src.NumUnit[k]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17K bytes
    - Viewed (0)
  3. 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)
  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/internal/profile/encode.go

    					Label{
    						keyX: addString(strings, k),
    						strX: addString(strings, v),
    					},
    				)
    			}
    		}
    		var numKeys []string
    		for k := range s.NumLabel {
    			numKeys = append(numKeys, k)
    		}
    		sort.Strings(numKeys)
    		for _, k := range numKeys {
    			vs := s.NumLabel[k]
    			for _, v := range vs {
    				s.labelX = append(s.labelX,
    					Label{
    						keyX: addString(strings, k),
    						numX: v,
    					},
    				)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 19:52:28 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/profile/encode.go

    						strX: addString(strings, v),
    					},
    				)
    			}
    		}
    		var numKeys []string
    		for k := range s.NumLabel {
    			numKeys = append(numKeys, k)
    		}
    		sort.Strings(numKeys)
    		for _, k := range numKeys {
    			keyX := addString(strings, k)
    			vs := s.NumLabel[k]
    			units := s.NumUnit[k]
    			for i, v := range vs {
    				var unitX int64
    				if len(units) != 0 {
    					unitX = addString(strings, units[i])
    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/internal/profile/profile.go

    		if len(s.Label) > 0 {
    			ls := labelHeader
    			for k, v := range s.Label {
    				ls = ls + fmt.Sprintf("%s:%v ", k, v)
    			}
    			ss = append(ss, ls)
    		}
    		if len(s.NumLabel) > 0 {
    			ls := labelHeader
    			for k, v := range s.NumLabel {
    				ls = ls + fmt.Sprintf("%s:%v ", k, v)
    			}
    			ss = append(ss, ls)
    		}
    	}
    
    	ss = append(ss, "Locations")
    	for _, l := range p.Location {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 17:57:40 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    	// to making graph.
    	// TODO: modify to select first numeric tag if no bytes tag
    	for _, s := range prof.Sample {
    		numLabels := make(map[string][]int64, len(s.NumLabel))
    		numUnits := make(map[string][]string, len(s.NumLabel))
    		for k, vs := range s.NumLabel {
    			if k == "bytes" {
    				unit := o.NumLabelUnits[k]
    				numValues := make([]int64, len(vs))
    				numUnit := make([]string, len(vs))
    				for i, v := range vs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    				if n == nil {
    					continue
    				}
    				n.addSample(dw, w, labels, sample.NumLabel, sample.NumUnit, o.FormatTag, false)
    				if parent != nil {
    					parent.AddToEdgeDiv(n, dw, w, false, lidx != len(lines)-1)
    				}
    				parent = n
    			}
    		}
    		if parent != nil {
    			parent.addSample(dw, w, labels, sample.NumLabel, sample.NumUnit, o.FormatTag, true)
    		}
    	}
    
    	nodes := make(Nodes, 0, len(prof.Location))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
  10. 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