- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 117 for Inits (1.25 sec)
-
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/DataAmount.java
import java.math.BigDecimal; public class DataAmount { public static final Units<DataAmount> BYTES = Units.base(DataAmount.class, "B"); public static final Units<DataAmount> KILO_BYTES = BYTES.times(1024, "kB"); public static final Units<DataAmount> MEGA_BYTES = KILO_BYTES.times(1024, "MB"); public static final Units<DataAmount> GIGA_BYTES = MEGA_BYTES.times(1024, "GB");
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.5K bytes - Viewed (0) -
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/Duration.java
import java.math.BigDecimal; public class Duration { public static final Units<Duration> MILLI_SECONDS = Units.base(Duration.class, "ms"); public static final Units<Duration> SECONDS = MILLI_SECONDS.times(1000, "s"); public static final Units<Duration> MINUTES = SECONDS.times(60, "m"); public static final Units<Duration> HOURS = MINUTES.times(60, "h"); public static Amount<Duration> millis(long millis) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.6K bytes - Viewed (0) -
src/debug/dwarf/unit.go
if len > 0 { nunit++ } } if b.err != nil { return nil, b.err } // Again, this time writing them down. b = makeBuf(d, unknownFormat{}, "info", 0, d.info) units := make([]unit, nunit) for i := range units { u := &units[i] u.base = b.off var n Offset if b.err != nil { return nil, b.err } for n == 0 { n, u.is64 = b.unitLength() } dataOff := b.off vers := b.uint16()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 21 17:14:08 UTC 2022 - 2.7K bytes - Viewed (0) -
src/internal/coverage/cformat/format.go
pkgs = append(pkgs, importpath) } slices.Sort(pkgs) for _, importpath := range pkgs { p := fm.pm[importpath] units := make([]extcu, 0, len(p.unitTable)) for u := range p.unitTable { units = append(units, u) } p.sortUnits(units) for _, u := range units { count := p.unitTable[u] file := p.funcs[u.fnfid].file if _, err := fmt.Fprintf(w, "%s:%d.%d,%d.%d %d %d\n",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.7K bytes - Viewed (0) -
pkg/kubelet/stats/helper_test.go
spec := []cadvisorapiv1.MetricSpec{ { Name: "qos", Type: cadvisorapiv1.MetricGauge, Format: cadvisorapiv1.IntType, Units: "per second", }, { Name: "cpuLoad", Type: cadvisorapiv1.MetricCumulative, Format: cadvisorapiv1.FloatType, Units: "count", }, } timestamp1 := time.Now() timestamp2 := time.Now().Add(time.Minute) metrics := map[string][]cadvisorapiv1.MetricVal{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 22 16:23:28 UTC 2020 - 2.3K bytes - Viewed (0) -
src/internal/coverage/decodemeta/decode.go
return err } // Preamble containing number of units, file, and function. numUnits := uint32(d.r.ReadULEB128()) fnameidx := uint32(d.r.ReadULEB128()) fileidx := uint32(d.r.ReadULEB128()) f.Srcfile = d.strtab.Get(fileidx) f.Funcname = d.strtab.Get(fnameidx) // Now the units f.Units = f.Units[:0] if cap(f.Units) < int(numUnits) { f.Units = make([]coverage.CoverableUnit, 0, numUnits) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 11:36:28 UTC 2023 - 3.6K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/measurement/measurement.go
type Unit struct { CanonicalName string aliases []string Factor float64 } // UnitType includes a list of units that are within the same category (i.e. // memory or time units) and a default unit to use for this type of unit. type UnitType struct { DefaultUnit Unit Units []Unit } // findByAlias returns the unit associated with the specified alias. It returns
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 8.8K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/cache/ResolutionControl.java
B getCachedResult(); /** * States that the cached value should be used if it is no older than the specified duration. * @param value The number of units * @param units The time units */ void cacheFor(int value, TimeUnit units); /** * States that the cached value should be used regardless of age. * If not cachedResult is available, resolution should fail. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 1.8K bytes - Viewed (0) -
src/go/internal/gccgoimporter/testdata/conversions.go
package conversions type Units string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 23:43:02 UTC 2016 - 67 bytes - Viewed (0) -
test/fixedbugs/issue17918.go
package dead import ( "fmt" "time" ) var ( units = []struct { divisor time.Duration unit rune }{ {1000000, 's'}, {60, 'm'}, {60, 'h'}, {24, 'd'}, {7, 'w'}, } ) func foobar(d time.Duration) string { d /= time.Microsecond unit := 'u' for _, f := range units { if d%f.divisor != 0 { break } d /= f.divisor unit = f.unit }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 16:31:27 UTC 2016 - 619 bytes - Viewed (0)