parameters: (self,
                 save_steps=None,
                 save_secs=None,
                 output_dir="",
                 show_dataflow=True,
                 show_memory=False)
docstring: Initializes a hook that takes periodic profiling snapshots.
  
      Args:
        save_steps: `int`, save profile traces every N steps. Exactly one of
            `save_secs` and `save_steps` should be set.
        save_secs: `int`, save profile traces every N seconds.
        output_dir: `string`, the directory to save the profile traces to.
            Defaults to the current directory.
        show_dataflow: `bool`, if True, add flow events to the trace connecting
            producers and consumers of tensors.
        show_memory: `bool`, if True, add object snapshot events to the trace
            showing the sizes and lifetimes of tensors.
docstring_summary: Initializes a hook that takes periodic profiling snapshots.
docstring_tokens: Initializes a hook that takes periodic profiling snapshots .
function: def __init__(self,
                 save_steps=None,
                 save_secs=None,
                 output_dir="",
                 show_dataflow=True,
                 show_memory=False):
      """Initializes a hook that takes periodic profiling snapshots.
  
      Args:
        save_steps: `int`, save profile traces every N steps. Exactly one of
            `save_secs` and `save_steps` should be set.
        save_secs: `int`, save profile traces every N seconds.
        output_dir: `string`, the directory to save the profile traces to.
            Defaults to the current directory.
        show_dataflow: `bool`, if True, add flow events to the trace connecting
            producers and consumers of tensors.
        show_memory: `bool`, if True, add object snapshot events to the trace
            showing the sizes and lifetimes of tensors.
      """
      self._output_file = os.path.join(output_dir, "timeline-{}.json")
      self._show_dataflow = show_dataflow
      self._show_memory = show_memory
      self._timer = SecondOrStepTimer(every_secs=save_secs,
                                      every_steps=save_steps)
function_tokens: def __init__ ( self , save_steps = None , save_secs = None , output_dir = "" , show_dataflow = True , show_memory = False ) : self . _output_file = os . path . join ( output_dir , "timeline-{}.json" ) self . _show_dataflow = show_dataflow self . _show_memory = show_memory self . _timer = SecondOrStepTimer ( every_secs = save_secs , every_steps = save_steps )