Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for NumLabel (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/cmd/vendor/github.com/google/pprof/profile/legacy_profile.go

    				}
    				p.Location = append(p.Location, loc)
    				locs[addr] = loc
    			}
    			sloc = append(sloc, loc)
    		}
    
    		p.Sample = append(p.Sample, &Sample{
    			Value:    value,
    			Location: sloc,
    			NumLabel: map[string][]int64{"bytes": {blocksize}},
    		})
    	}
    	if err := s.Err(); err != nil {
    		return nil, err
    	}
    	if err := parseAdditionalSections(s, p); err != nil {
    		return nil, err
    	}
    	return p, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 32.8K bytes
    - Viewed (0)
Back to top