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)
| 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'. |
no test coverage detected