tools/mac/power/collapse_profile.py
def post_process_samples(self):
    """Applies filtering and enhancing to self.samples().  This function can
    only be called once.

    Raises:
      SystemExit: If this function is called twice on the same object.
    """

    if self.post_processing_applied:
      logging.error("Post processing cannot be applied twice")
      sys.exit(-1)
    self.post_processing_applied = True

    processed_samples = []
    for row in self.samples:
      # Filter out the frames we don't care about and all those under it.
      row["frames"] = self.shorten_stack(row["frames"])
      row["frames"] = self.add_category_from_any_frame(row["frames"])
      row["frames"] = self.remove_tokens(row["frames"])
Applies filtering and enhancing to self.samples().  This function can
    only be called once.

    Raises:
      SystemExit: If this function is called twice on the same object.
    
Applies filtering and enhancing to self.samples().  This function can
only be called once.
Applies filtering and enhancing to self . samples () . This function can only be called once .
def post_process_samples(self):
    if self.post_processing_applied:
      logging.error("Post processing cannot be applied twice")
      sys.exit(-1)
    self.post_processing_applied = True
    processed_samples = []
    for row in self.samples:
      row["frames"] = self.shorten_stack(row["frames"])
      row["frames"] = self.add_category_from_any_frame(row["frames"])
      row["frames"] = self.remove_tokens(row["frames"])
def post_process_samples ( self ) : if self . post_processing_applied : logging . error ( "Post processing cannot be applied twice" ) sys . exit ( - 1 ) self . post_processing_applied = True processed_samples = [ ] for row in self . samples : row [ "frames" ] = self . shorten_stack ( row [ "frames" ] ) row [ "frames" ] = self . add_category_from_any_frame ( row [ "frames" ] ) row [ "frames" ] = self . remove_tokens ( row [ "frames" ] )
Applies filtering and enhancing to self.samples().
Applies filtering and enhancing to self . samples () .
"""Applies filtering and enhancing to self.samples().  This function can
    only be called once.

    Raises:
      SystemExit: If this function is called twice on the same object.
    """ # Filter out the frames we don't care about and all those under it.
If this function is called twice on the same object.
If this function is called twice on the same object .
SystemExit
self