- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 547 for _counters (0.44 sec)
-
src/internal/fuzz/counters_supported.go
) // coverage returns a []byte containing unique 8-bit counters for each edge of // the instrumented source code. This coverage data will only be generated if // `-d=libfuzzer` is set at build time. This can be used to understand the code // coverage of a test execution. func coverage() []byte { addr := unsafe.Pointer(&_counters) size := uintptr(unsafe.Pointer(&_ecounters)) - uintptr(addr) return unsafe.Slice((*byte)(addr), int(size))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 08 21:16:39 UTC 2022 - 710 bytes - Viewed (0) -
src/internal/fuzz/coverage.go
var ( coverageEnabled = len(coverage()) > 0 coverageSnapshot = make([]byte, len(coverage())) // _counters and _ecounters mark the start and end, respectively, of where // the 8-bit coverage counters reside in memory. They're known to cmd/link, // which specially assigns their addresses for this purpose. _counters, _ecounters [0]byte
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 2.5K bytes - Viewed (0) -
src/internal/fuzz/counters_unsupported.go
// In theory, we shouldn't need this file at all: if the binary was built // without coverage, then _counters and _ecounters should have the same address. // However, this caused an init failure on aix/ppc64, so it's disabled here. // coverage returns a []byte containing unique 8-bit counters for each edge of // the instrumented source code. This coverage data will only be generated if
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 22 17:10:57 UTC 2023 - 1.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/counter/counter.go
// requiring, at a minimum, a call to runtime.Callers. type StackCounter = counter.StackCounter // NewStack returns a new stack counter with the given name and depth. // // See "Counter Naming" in the package doc for a description of counter naming // conventions. func NewStack(name string, depth int) *StackCounter { return counter.NewStack(name, depth) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 18:02:34 UTC 2024 - 4.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/counter/counter.go
return &Counter{name: name, file: &defaultFile} } // Inc adds 1 to the counter. func (c *Counter) Inc() { c.Add(1) } // Add adds n to the counter. n cannot be negative, as counts cannot decrease. func (c *Counter) Add(n int64) { debugPrintf("Add %q += %d", c.name, n) if n < 0 { panic("Counter.Add negative") } if n == 0 { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 10.3K bytes - Viewed (0) -
src/cmd/link/internal/ld/data.go
ldr.SetSymSect(ldr.LookupOrCreateSym("runtime.__stop___sancov_cntrs", 0), sect) ldr.SetSymSect(ldr.LookupOrCreateSym("internal/fuzz._counters", 0), sect) ldr.SetSymSect(ldr.LookupOrCreateSym("internal/fuzz._ecounters", 0), sect) } // Assign runtime.end to the last section of data segment. ldr.SetSymSect(ldr.LookupOrCreateSym("runtime.end", 0), Segdata.Sections[len(Segdata.Sections)-1])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 12 15:10:50 UTC 2024 - 100.5K bytes - Viewed (0) -
pkg/monitoring/counter.go
api "go.opentelemetry.io/otel/metric" "istio.io/istio/pkg/log" ) type counter struct { baseMetric c api.Float64Counter // precomputedAddOption is just a precomputation to avoid allocations on each record call precomputedAddOption []api.AddOption } var _ Metric = &counter{} func newCounter(o options) *counter { c, err := meter().Float64Counter(o.name, api.WithDescription(o.description),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 17 20:25:52 UTC 2023 - 1.7K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental_reader_test.cc
void IncrementCounter0(TFE_MonitoringCounter0* counter, int64_t delta = 1); void IncrementCounter1(TFE_MonitoringCounter1* counter, const char* label, int64_t delta = 1); TEST(CAPI, MonitoringCellReader0) { auto counter_name = "test/counter0"; auto* counter = CreateCounter0(counter_name); auto* reader = TFE_MonitoringNewCounterReader(counter_name); IncrementCounter0(counter);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 20 03:14:47 UTC 2023 - 2.9K bytes - Viewed (0) -
src/internal/coverage/cfile/emit.go
} } else { // The package ID value stored in the counter array // has 1 added to it (so as to preclude the // possibility of a zero value ; see // runtime.addCovMeta), so subtract off 1 here to form // the real package ID. pkgId-- } tcounters = rdCounters(counters, tcounters) if err := f(pkgId, funcId, tcounters); err != nil { return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:57:47 UTC 2024 - 18.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/counter/doc.go
// Package counter implements a simple counter system for collecting // totally public telemetry data. // // There are two kinds of counters, basic counters and stack counters. // Basic counters are created by [New]. // Stack counters are created by [NewStack]. // Both are incremented by calling Inc(). // // Basic counters are very cheap. Stack counters are more expensive, as they
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:10:54 UTC 2024 - 2.4K bytes - Viewed (0)