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: Constructs a new Chrome Trace formatter.
docstr_tok: ["Constructs","a","new","Chrome","Trace","formatter","."]
code: def __init__(self, show_memory: bool = False) -> None:
      """Constructs a new Chrome Trace formatter."""
      self._show_memory = show_memory
      self._events = []
      self._metadata = []
  
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 1 to create a new _ChromeTraceFormatter object from inherited base classes: object with example: obj = _ChromeTraceFormatter(show_memory)