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: Adds a flow start event to the trace.
  
  When matched with a flow end event (with the same 'flow_id') this will
  cause the trace viewer to draw an arrow between the start and end events.
  
  Args:
    name:  The event name as a string.
    timestamp:  The timestamp of this event as a long integer.
    pid:  Identifier of the process generating this event as an integer.
    tid:  Identifier of the thread generating this event as an integer.
    flow_id: Identifier of the flow as an integer.
docstr_tok: ["Adds","a","flow","start","event","to","the","trace",".","When","matched","with","a","flow","end","event","(","with","the","same","'flow_id","'",")","this","will","cause","the","trace","viewer","to","draw","an","arrow","between","the","start","and","end","events",".","Args",":","name",":","The","event","name","as","a","string",".","timestamp",":","The","timestamp","of","this","event","as","a","long","integer",".","pid",":","Identifier","of","the","process","generating","this","event","as","an","integer",".","tid",":","Identifier","of","the","thread","generating","this","event","as","an","integer",".","flow_id",":","Identifier","of","the","flow","as","an","integer","."]
code: def emit_flow_start(
      self, name: str, timestamp: int, pid: int, tid: int, flow_id: int
  ) -> None:
      """Adds a flow start event to the trace.
  
      When matched with a flow end event (with the same 'flow_id') this will
      cause the trace viewer to draw an arrow between the start and end events.
  
      Args:
        name:  The event name as a string.
        timestamp:  The timestamp of this event as a long integer.
        pid:  Identifier of the process generating this event as an integer.
        tid:  Identifier of the thread generating this event as an integer.
        flow_id: Identifier of the flow as an integer.
      """
      event = self._create_event(
          "s", "DataFlow", name, pid, tid, timestamp
      )
      event["id"] = flow_id
      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 9 for calling the _ChromeTraceFormatter obj's underlying member method code with example usage: obj.emit_flow_start(name, timestamp, pid, tid, flow_id) without return types