class_docstr: A helper class for generating traces in Chrome Trace Format.
class_docstr_tok: ["A","helper","class","for","generating","traces","in","Chrome","Trace","Format","."]
docstr: 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.
    counters: Dictionary of counter values.
docstr_tok: ["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",".","counters",":","Dictionary","of","counter","values","."]
code: def emit_counters(self, category, name, pid, timestamp, counters):
      """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.
        counters: Dictionary of counter values.
      """
      event = self._create_event("C", category, name, pid, 0, timestamp)
      event["args"] = counters.copy()
      self._events.append(event)
  
imports: import collections
  import copy
  import json
  import re
  from typing import Any, Dict, List, Optional, Tuple, Union
  from tensorflow.core.framework import step_stats_pb2
  from tensorflow.python.platform import build_info
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 12 for calling the _ChromeTraceFormatter obj's underlying member method code with example usage: obj.emit_counters(category, name, pid, timestamp, counters) without return types