parameters: (self, filename_or_stream, process_record_fn = None)
docstring: Read a .cali file or stream.
  
          Snapshot records being read are fed to the user-provided
          process_record_fn callback function.
          After reading, global (metadata) values are stored in the
          globals attribute.
  
          Arguments:
              filename_or_stream : str or stream object
                  The filename or stream to read.
              process_record_fn  : Function accepting a dict
                  A callback function to process performance data records
docstring_summary: Read a .cali file or stream.
docstring_tokens: Read a . cali file or stream .
function: def read(self, filename_or_stream, process_record_fn = None):
          """ Read a .cali file or stream.
  
          Snapshot records being read are fed to the user-provided
          process_record_fn callback function.
          After reading, global (metadata) values are stored in the
          globals attribute.
  
          Arguments:
              filename_or_stream : str or stream object
                  The filename or stream to read.
              process_record_fn  : Function accepting a dict
                  A callback function to process performance data records
          """
  
          if isinstance(filename_or_stream, str):
              with open(filename_or_stream) as f:
                  for line in f:
                      self._process(line, process_record_fn)
          else:
              for line in filename_or_stream:
                  self._process(line, process_record_fn)
function_tokens: def read ( self , filename_or_stream , process_record_fn = None ) : if isinstance ( filename_or_stream , str ) : with open ( filename_or_stream ) as f : for line in f : self . _process ( line , process_record_fn ) else : for line in filename_or_stream : self . _process ( line , process_record_fn )