- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 663 for counter1 (0.14 sec)
-
subprojects/core/src/integTest/groovy/org/gradle/api/services/BuildServiceIntegrationTest.groovy
} } apply plugin: CounterConventionPlugin def counter1 = project.gradle.sharedServices.registerIfAbsent("counter1", CountingService) { parameters.initial = 0 } def counter2 = project.gradle.sharedServices.registerIfAbsent("counter2", CountingService) { parameters.initial = 10 } task count {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jun 06 19:15:46 UTC 2024 - 61K 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) -
tensorflow/c/eager/c_api_experimental_test.cc
EXPECT_EQ( 6, metrics->point_set_map.at("test/counter")->points.at(0)->int64_value); TFE_MonitoringDeleteCounter0(counter); metrics = collection_registry->CollectMetrics(options); EXPECT_EQ(metrics->point_set_map.end(), metrics->point_set_map.find("test/counter")); } TEST(CAPI, MonitoringCounterMultiple) { TF_Status* status = TF_NewStatus(); auto* counter1 = TFE_MonitoringNewCounter1("test/counter1", status,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 03 03:14:26 UTC 2023 - 31.5K 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) -
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) -
src/internal/fuzz/coverage.go
import ( "fmt" "math/bits" ) // ResetCoverage sets all of the counters for each edge of the instrumented // source code to 0. func ResetCoverage() { cov := coverage() clear(cov) } // SnapshotCoverage copies the current counter values into coverageSnapshot, // preserving them for later inspection. SnapshotCoverage also rounds each // counter down to the nearest power of two. This lets the coordinator store
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 2.5K bytes - Viewed (0) -
cluster/gce/gci/mounter/mounter.go
if _, err := os.Stat(rootfsPath); os.IsNotExist(err) { rootfsPath = defaultRootfs } command := os.Args[1] switch command { case mountCmd: mountErr := mountInChroot(rootfsPath, os.Args[2:]) if mountErr != nil { fmt.Fprintf(os.Stderr, "Mount failed: %v", mountErr) os.Exit(1) } default: fmt.Fprintf(os.Stderr, "Unknown command, must be %s", mountCmd) os.Exit(1) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 20 22:26:16 UTC 2019 - 2.8K 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)