Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for WeightValue (0.16 sec)

  1. src/cmd/internal/pgo/pprof.go

    			CallerName:     canonicalName,
    			CallSiteOffset: n.Info.Lineno - n.Info.StartLine,
    		}
    
    		for _, e := range n.Out {
    			totalWeight += e.WeightValue()
    			namedEdge.CalleeName = e.Dest.Info.Name
    			// Create new entry or increment existing entry.
    			weight[namedEdge] += e.WeightValue()
    		}
    	}
    
    	if !seenStartLine {
    		// TODO(prattmic): If Function.start_line is missing we could
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. src/internal/profile/graph.go

    	Residual bool
    	// An inline edge represents a call that was inlined into the caller.
    	Inline bool
    }
    
    // WeightValue returns the weight value for this edge, normalizing if a
    // divisor is available.
    func (e *Edge) WeightValue() int64 {
    	if e.WeightDiv == 0 {
    		return e.Weight
    	}
    	return e.Weight / e.WeightDiv
    }
    
    // NewGraph computes a graph from a profile.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 20:59:15 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    	Residual bool
    	// An inline edge represents a call that was inlined into the caller.
    	Inline bool
    }
    
    // WeightValue returns the weight value for this edge, normalizing if a
    // divisor is available.
    func (e *Edge) WeightValue() int64 {
    	if e.WeightDiv == 0 {
    		return e.Weight
    	}
    	return e.Weight / e.WeightDiv
    }
    
    // Tag represent sample annotations
    type Tag struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
Back to top