MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / emit_counter

Method emit_counter

tensorflow/python/client/timeline.py:255–268  ·  view source on GitHub ↗

Emits a record for a single counter. Args: category: The event category as a string. name: The event name as a string. pid: Identifier of the process generating this event as an integer. timestamp: The timestamp of this event as a long integer. counter: Name of

(self, category, name, pid, timestamp, counter, value)

Source from the content-addressed store, hash-verified

253 self._events.append(event)
254
255 def emit_counter(self, category, name, pid, timestamp, counter, value):
256 """Emits a record for a single counter.
257
258 Args:
259 category: The event category as a string.
260 name: The event name as a string.
261 pid: Identifier of the process generating this event as an integer.
262 timestamp: The timestamp of this event as a long integer.
263 counter: Name of the counter as a string.
264 value: Value of the counter as an integer.
265 """
266 event = self._create_event('C', category, name, pid, 0, timestamp)
267 event['args'] = {counter: value}
268 self._events.append(event)
269
270 def emit_counters(self, category, name, pid, timestamp, counters):
271 """Emits a counter record for the dictionary 'counters'.

Callers 1

_show_memory_countersMethod · 0.45

Calls 2

_create_eventMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected