class_docstr: This profiler uses Python's cProfiler to record more detailed information about time spent in each function call
  recorded during a given action.
  
  The output is quite verbose and you should only use this if you want very detailed reports.
code: def stop(self, action_name: str) -> None:
      pr = self.profiled_actions.get(action_name)
      if pr is None:
          raise ValueError(
              f"Attempting to stop recording an action ({action_name}) which was never started."
          )
      pr.disable()
  
file_path: pytorch-lightning/src/lightning/pytorch/profilers/advanced.py
imports: import cProfile
  import io
  import logging
  import pstats
  from pathlib import Path
  from typing import Dict, Optional, Tuple, Union
  from typing_extensions import override
  from lightning.pytorch.profilers.profiler import Profiler
label_desc: Use image node_id 3 for calling the AdvancedProfiler obj's underlying member method code with example usage: obj.stop(action_name) without return types