Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for totalHeight (0.19 sec)

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

    		SampleValue: func(v []int64) int64 { return v[valueIndex] },
    	})
    
    	namedEdgeMap, totalWeight, err := createNamedEdgeMap(g)
    	if err != nil {
    		return nil, err
    	}
    
    	if totalWeight == 0 {
    		return emptyProfile(), nil // accept but ignore profile with no samples.
    	}
    
    	return &Profile{
    		TotalWeight:  totalWeight,
    		NamedEdgeMap: namedEdgeMap,
    	}, nil
    }
    
    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/cmd/internal/pgo/serialize_test.go

    	"fmt"
    	"reflect"
    	"strings"
    	"testing"
    )
    
    // equal returns an error if got and want are not equal.
    func equal(got, want *Profile) error {
    	if got.TotalWeight != want.TotalWeight {
    		return fmt.Errorf("got.TotalWeight %d != want.TotalWeight %d", got.TotalWeight, want.TotalWeight)
    	}
    	if !reflect.DeepEqual(got.NamedEdgeMap.ByWeight, want.NamedEdgeMap.ByWeight) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. src/cmd/internal/pgo/pgo.go

    // intermediate representation.
    package pgo
    
    // Profile contains the processed data from the PGO profile.
    type Profile struct {
    	// TotalWeight is the aggregated edge weights across the profile. This
    	// helps us determine the percentage threshold for hot/cold
    	// partitioning.
    	TotalWeight int64
    
    	// NamedEdgeMap contains all unique call edges in the profile and their
    	// edge weight.
    	NamedEdgeMap NamedEdgeMap
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/loadbalancer/loadbalancer.go

    								destLocMap[i] = 1
    							}
    							totalWeight += destLocMap[i]
    						}
    					}
    				}
    				// in case wildcard dest matching multi groups of endpoints
    				// the load balancing weight for a locality is divided by the sum of the weights of all localities
    				for index, originalWeight := range destLocMap {
    					destWeight := float64(originalWeight*weight) / float64(totalWeight)
    					if destWeight > 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  5. src/cmd/internal/pgo/serialize.go

    		written += int64(n)
    		if err != nil {
    			return written, err
    		}
    	}
    
    	if err := bw.Flush(); err != nil {
    		return written, err
    	}
    
    	// No need to serialize TotalWeight, it can be trivially recomputed
    	// during parsing.
    
    	return written, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. src/cmd/internal/pgo/deserialize.go

    		}
    
    		d.NamedEdgeMap.ByWeight = append(d.NamedEdgeMap.ByWeight, edge) // N.B. serialization is ordered.
    		d.NamedEdgeMap.Weight[edge] += weight
    		d.TotalWeight += weight
    	}
    
    	return d, nil
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. pkg/config/validation/agent/validation.go

    		var totalWeight uint32
    		destLocalities := make([]string, 0)
    		for loc, weight := range locality.To {
    			destLocalities = append(destLocalities, loc)
    			if weight <= 0 || weight > 100 {
    				errs = AppendValidation(errs, fmt.Errorf("locality weight must be in range [1, 100]"))
    				return
    			}
    			totalWeight += weight
    		}
    		if totalWeight != 100 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  8. pkg/config/validation/validation.go

    		}
    		errs = appendErrors(errs, validateWeight(weight.Weight))
    		totalWeight += weight.Weight
    	}
    	if len(weights) > 1 && totalWeight == 0 {
    		errs = appendErrors(errs, fmt.Errorf("total destination weight = 0"))
    	}
    	return
    }
    
    func validateRouteDestinations(weights []*networking.RouteDestination, gatewaySemantics bool) (errs error) {
    	var totalWeight int32
    	for _, weight := range weights {
    		if weight == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/cache/LocalCache.java

        /** The number of live elements in this segment's region. */
        volatile int count;
    
        /** The weight of the live elements in this segment's region. */
        @GuardedBy("this")
        long totalWeight;
    
        /**
         * Number of updates that alter the size of the table. This is used during bulk-read methods to
         * make sure they see a consistent snapshot: If modCounts change during a traversal of segments
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/LocalCache.java

        /** The number of live elements in this segment's region. */
        volatile int count;
    
        /** The weight of the live elements in this segment's region. */
        @GuardedBy("this")
        long totalWeight;
    
        /**
         * Number of updates that alter the size of the table. This is used during bulk-read methods to
         * make sure they see a consistent snapshot: If modCounts change during a traversal of segments
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat May 18 03:24:34 UTC 2024
    - 143.6K bytes
    - Viewed (0)
Back to top