class_docstr: Creates profiles in pprof format.
docstr: Constructor.
  
  Args:
    graph: A `Graph` instance.
    run_metadata: A list of `RunMetadata` objects.
docstr_tok: ["Constructor",".","Args",":","graph",":","A","`","Graph","`","instance",".","run_metadata",":","A","list","of","`","RunMetadata","`","objects","."]
code: def __init__(self, graph, run_metadata):
      """Constructor.
  
      Args:
        graph: A `Graph` instance.
        run_metadata: A list of `RunMetadata` objects.
      """
      self._graph = graph
      self._run_metadata = run_metadata
      self._string_table = StringTable()
      self._functions = Functions(self._string_table)
      self._locations = Locations(self._functions)
  
imports: from collections import defaultdict
  from collections import namedtuple
  import gzip
  import os
  import string
  import sys
  import time
  from proto import profile_pb2
label_desc: Use image node_id 1 to create a new PprofProfiler object from inherited base classes: object with example: obj = PprofProfiler(graph, run_metadata)