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

Method emit_pid

tensorflow/python/client/timeline.py:90–102  ·  view source on GitHub ↗

Adds a process metadata event to the trace. Args: name: The process name as a string. pid: Identifier of the process as an integer.

(self, name, pid)

Source from the content-addressed store, hash-verified

88 return event
89
90 def emit_pid(self, name, pid):
91 """Adds a process metadata event to the trace.
92
93 Args:
94 name: The process name as a string.
95 pid: Identifier of the process as an integer.
96 """
97 event = {}
98 event['name'] = 'process_name'
99 event['ph'] = 'M'
100 event['pid'] = pid
101 event['args'] = {'name': name}
102 self._metadata.append(event)
103
104 def emit_tid(self, name, pid, tid):
105 """Adds a thread metadata event to the trace.

Callers 1

_allocate_pidsMethod · 0.45

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected