- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 663 for counter1 (0.13 sec)
-
src/cmd/vendor/golang.org/x/telemetry/internal/counter/stackcounter.go
c.mu.Lock() defer c.mu.Unlock() counters := make([]*Counter, len(c.stacks)) for i, s := range c.stacks { counters[i] = s.counter } return counters } func eq(a, b []uintptr) bool { if len(a) != len(b) { return false } for i := range a { if a[i] != b[i] { return false } } return true } // ReadStack reads the given stack counter.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:10:54 UTC 2024 - 4.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/counter/countertest/countertest.go
// golang.org/x/telemetry/counter.Open. func Open(telemetryDir string) { openedMu.Lock() defer openedMu.Unlock() if opened { panic("Open was called more than once") } telemetry.Default = telemetry.NewDir(telemetryDir) counter.Open() opened = true } // ReadCounter reads the given counter. func ReadCounter(c *counter.Counter) (count uint64, _ error) { return ic.Read(c) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:13:09 UTC 2024 - 1.5K bytes - Viewed (0) -
src/cmd/cover/testdata/main.go
// check records the location and expected value for a counter. func check(line, count uint32) { b := block{ count, line, } counters[b] = true } // checkVal is a version of check that returns its extra argument, // so it can be used in conditionals. func checkVal(line, count uint32, val int) int { b := block{ count, line, } counters[b] = true return val } var PASS = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 04 16:40:40 UTC 2016 - 3K bytes - Viewed (0) -
src/cmd/covdata/metamerge.go
// FIXME: in theory either A) len(val.Counters) is zero, or B) // the two lengths are equal. Assert if not? Of course, we could // see odd stuff if there is source file skew. if *verbflag > 4 { fmt.Printf("visit pk=%d fid=%d len(counters)=%d\n", data.PkgIdx, data.FuncIdx, len(data.Counters)) } if len(val.Counters) < len(data.Counters) { t := val.Counters val.Counters = mm.AllocateCounters(len(data.Counters))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 12 17:17:47 UTC 2024 - 12.1K bytes - Viewed (0) -
src/internal/chacha8rand/chacha8_generic.go
x64 = uint64(x)<<32 | uint64(x) b[11][0] = x64 b[11][1] = x64 // Counters. if goarch.BigEndian { b[12][0] = uint64(counter+0)<<32 | uint64(counter+1) b[12][1] = uint64(counter+2)<<32 | uint64(counter+3) } else { b[12][0] = uint64(counter+0) | uint64(counter+1)<<32 b[12][1] = uint64(counter+2) | uint64(counter+3)<<32 } // Zeros. b[13][0] = 0 b[13][1] = 0 b[14][0] = 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:32:54 UTC 2023 - 6.3K bytes - Viewed (0) -
src/internal/coverage/cfile/testsupport.go
nCtrs := sd[i+coverage.NumCtrsOffset].Load() cst := i + coverage.FirstCtrOffset if cst+int(nCtrs) > len(sd) { break } counters := sd[cst : cst+int(nCtrs)] for i := range counters { if counters[i].Load() != 0 { totExec++ } } i += coverage.FirstCtrOffset + int(nCtrs) - 1 } } if tot == 0 { return 0.0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:57:47 UTC 2024 - 8.7K bytes - Viewed (0) -
src/cmd/covdata/dump.go
return } key := pkfunc{pk: data.PkgIdx, fcn: data.FuncIdx} val, found := d.mm[key] dbgtrace(5, "ctr visit pk=%d fid=%d found=%v len(val.ctrs)=%d len(data.ctrs)=%d", data.PkgIdx, data.FuncIdx, found, len(val.Counters), len(data.Counters)) if len(val.Counters) < len(data.Counters) { t := val.Counters val.Counters = d.AllocateCounters(len(data.Counters))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 11:36:57 UTC 2023 - 11.2K bytes - Viewed (0) -
src/internal/coverage/defs.go
// CounterFlavor describes how function and counters are // stored/represented in the counter section of the file. type CounterFlavor uint8 const ( // "Raw" representation: all values (pkg ID, func ID, num counters, // and counters themselves) are stored as uint32's. CtrRaw CounterFlavor = iota + 1 // "ULeb" representation: all values (pkg ID, func ID, num counters, // and counters themselves) are stored with ULEB128 encoding.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 14 12:51:16 UTC 2023 - 11.9K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental_reader.h
// Test only exports of the monitoring Cell Reader API which allows tests to // read current values from streamz counters defined in other modules. // // The code under test will have created streamz counters like this: // auto* streamz = tensorflow::monitoring::Counter<1>::New("name", // "description", "label"); // and then incremented that counter for various values of label: // streamz->GetCell("label-value")->IncrementBy(1); //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 20 03:14:47 UTC 2023 - 2.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/config/config.go
} return s } // Expand takes a counter defined with buckets and expands it into distinct // strings for each bucket func Expand(counter string) []string { prefix, rest, hasBuckets := strings.Cut(counter, "{") var counters []string if hasBuckets { buckets := strings.Split(strings.TrimSuffix(rest, "}"), ",") for _, b := range buckets { counters = append(counters, prefix+b) } } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:57:25 UTC 2024 - 3.5K bytes - Viewed (0)