- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 236 for counter2 (0.22 sec)
-
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/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/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/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/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) -
src/internal/coverage/decodecounter/decodecounterfile.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 27 15:29:54 UTC 2023 - 9.8K bytes - Viewed (0) -
pkg/proxy/util/nfacct/nfacct_linux_test.go
// validate response if tc.err != nil { assert.Nil(t, counter) assert.ErrorContains(t, err, tc.err.Error()) } else { assert.NotNil(t, counter) assert.NoError(t, err) assert.Equal(t, tc.counter.Name, counter.Name) assert.Equal(t, tc.counter.Packets, counter.Packets) assert.Equal(t, tc.counter.Bytes, counter.Bytes) } } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 06:47:50 UTC 2024 - 18.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/counter/file.go
} wroteNext = true } else { c.next.Store(next) } if f.counters.CompareAndSwap(head, c) { debugPrintf("registered %s %p\n", c.Name(), f.counters.Load()) return } debugPrintf("register %s cas2 failed %p %p\n", c.Name(), f.counters.Load(), head) } } // invalidateCounters marks as invalid all the pointers // held by f's counters and then refreshes them. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 18.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/upload/reports.go
continue } prog := findProgReport(x.Meta, report) for k, v := range x.Count { if counter.IsStackCounter(k) { // stack prog.Stacks[k] += int64(v) } else { // counter prog.Counters[k] += int64(v) } succeeded = true fok = true } if !fok { u.logger.Printf("no counters found in %s", f) } } if !succeeded {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 14:52:56 UTC 2024 - 10.3K bytes - Viewed (0)