Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 313 for units (0.05 sec)

  1. src/internal/coverage/cfile/testsupport.go

    				return fmt.Errorf("reading meta-data file %s: %v",
    					p.MetaFile, err)
    			}
    			key := pkfunc{pk: pkIdx, fcn: fnIdx}
    			counters, haveCounters := pmm[key]
    			for i := 0; i < len(fd.Units); i++ {
    				u := fd.Units[i]
    				// Skip units with non-zero parent (no way to represent
    				// these in the existing format).
    				if u.Parent != 0 {
    					continue
    				}
    				count := uint32(0)
    				if haveCounters {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. src/cmd/cover/cover.go

    			EnLine:  uint32(enpos.Line),
    			EnCol:   uint32(enpos.Column),
    			NxStmts: uint32(numStmt),
    		}
    		f.fn.units = append(f.fn.units, unit)
    	} else {
    		stmt = counterStmt(f, fmt.Sprintf("%s.Count[%d]", *varVar,
    			len(f.blocks)))
    		f.blocks = append(f.blocks, Block{start, end, numStmt})
    	}
    	return stmt
    }
    
    // addCounters takes a list of statements and adds counters to the beginning of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_container_windows.go

    		//   Option a: Set HostConfig.CpuPercent. The units are whole percent of the total CPU capacity of the system, meaning the resolution
    		//      is different based on the number of cores.
    		//   Option b: Set HostConfig.NanoCpus integer <int64> - CPU quota in units of 10e-9 CPUs. Moby scales this to the Windows job object
    		//      resolution of 1-10000, so it's higher resolution than option a.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/qos_container_manager_linux.go

    */
    
    package cm
    
    import (
    	"fmt"
    	"strconv"
    	"strings"
    	"sync"
    	"time"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/klog/v2"
    
    	"k8s.io/apimachinery/pkg/util/wait"
    
    	units "github.com/docker/go-units"
    	libcontainercgroups "github.com/opencontainers/runc/libcontainer/cgroups"
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    
    	"k8s.io/kubernetes/pkg/api/v1/resource"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 20:42:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. pkg/apis/core/v1/helper/helpers.go

    	return resource.ParseQuantity(pageSize)
    }
    
    // HugePageUnitSizeFromByteSize returns hugepage size has the format.
    // `size` must be guaranteed to divisible into the largest units that can be expressed.
    // <size><unit-prefix>B (1024 = "1KB", 1048576 = "1MB", etc).
    func HugePageUnitSizeFromByteSize(size int64) (string, error) {
    	// hugePageSizeUnitList is borrowed from opencontainers/runc/libcontainer/cgroups/utils.go
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 23:03:54 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_gc.go

    				cgc.removeOldestN(ctx, unit, len(unit)) // Remove all.
    				delete(evictUnits, key)
    			}
    		}
    	}
    
    	// Enforce max containers per evict unit.
    	if gcPolicy.MaxPerPodContainer >= 0 {
    		cgc.enforceMaxContainersPerEvictUnit(ctx, evictUnits, gcPolicy.MaxPerPodContainer)
    	}
    
    	// Enforce max total number of containers.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go

    	Error   *apiservercel.Error
    	// If true, the compiled expression contains a reference to the identifier "oldSelf".
    	UsesOldSelf bool
    	// Represents the worst-case cost of the compiled expression in terms of CEL's cost units, as used by cel.EstimateCost.
    	MaxCost uint64
    	// MaxCardinality represents the worse case number of times this validation rule could be invoked if contained under an
    	// unbounded map or list in an OpenAPIv3 schema.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/driver/html/stacks.js

    // pprofUnitText returns a formatted string to display for value in the specified unit.
    function pprofUnitText(value, unit) {
      const sign = (value < 0) ? "-" : "";
      let v = Math.abs(value);
      // Rescale to appropriate display unit.
      let list = null;
      for (const def of pprofUnitDefs) {
        if (def.DefaultUnit.CanonicalName == unit) {
          list = def.Units;
          v *= def.DefaultUnit.Factor;
          break;
        }
      }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    	}
    	// Add numeric tags
    	if format == nil {
    		format = defaultLabelFormat
    	}
    	for k, nvals := range numLabel {
    		units := numUnit[k]
    		for i, v := range nvals {
    			var t *Tag
    			if len(units) > 0 {
    				t = numericTags.findOrAddTag(format(v, units[i]), units[i], v)
    			} else {
    				t = numericTags.findOrAddTag(format(v, k), k, v)
    			}
    			if flat {
    				t.FlatDiv += dw
    				t.Flat += w
    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/internal/report/report.go

    	unit := minUnit
    	if minUnit != maxUnit && minValue*100 < maxValue && o.OutputFormat != Callgrind {
    		// Minimum and maximum values have different units. Scale
    		// minimum by 100 to use larger units, allowing minimum value to
    		// be scaled down to 0.01, except for callgrind reports since
    		// they can only represent integer values.
    		_, unit = measurement.Scale(100*minValue, o.SampleUnit, "minimum")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
Back to top