Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for srcCopy (0.07 sec)

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

    		if !compatibleValueTypes(minType, t) {
    			return nil, fmt.Errorf("incompatible types: %v %v", *minType, *t)
    		}
    		if ratio, _ := Scale(1, t.Unit, minType.Unit); ratio < 1 {
    			minType = t
    		}
    	}
    	rcopy := *minType
    	return &rcopy, nil
    }
    
    func compatibleValueTypes(v1, v2 *profile.ValueType) bool {
    	if v1 == nil || v2 == nil {
    		return true // No grounds to disqualify.
    	}
    	// Remove trailing 's' to permit minor mismatches.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top