Emits a counter record for the dictionary 'counters'. 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.
(self, category, name, pid, timestamp, counters)
| 269 | self._events.append(event) |
| 270 | |
| 271 | def emit_counters(self, category, name, pid, timestamp, counters): |
| 272 | """Emits a counter record for the dictionary 'counters'. |
| 273 | |
| 274 | Args: |
| 275 | category: The event category as a string. |
| 276 | name: The event name as a string. |
| 277 | pid: Identifier of the process generating this event as an integer. |
| 278 | timestamp: The timestamp of this event as a long integer. |
| 279 | counters: Dictionary of counter values. |
| 280 | """ |
| 281 | event = self._create_event('C', category, name, pid, 0, timestamp) |
| 282 | event['args'] = counters.copy() |
| 283 | self._events.append(event) |
| 284 | |
| 285 | def format_to_string(self, pretty=False): |
| 286 | """Formats the chrome trace to a string. |
nothing calls this directly
no test coverage detected