class_docstr: This profiler simply records the duration of actions (in seconds) and reports the mean duration of each action
  and the total time spent over the entire training run.
class_docstr_tok: ["This","profiler","simply","records","the","duration","of","actions","(","in","seconds",")","and","reports","the","mean","duration","of","each","action","and","the","total","time","spent","over","the","entire","training","run","."]
code: def start(self, action_name: str) -> None:
      if action_name in self.current_actions:
          raise ValueError(
              f"Attempted to start {action_name} which has already started."
          )
      self.current_actions[action_name] = time.monotonic()
  
file_path: pytorch-lightning/src/lightning/pytorch/profilers/simple.py
imports: import logging
  import os
  import time
  from collections import defaultdict
  from pathlib import Path
  from typing import Dict, List, Optional, Tuple, Union
  import torch
  from typing_extensions import override
  from lightning.pytorch.profilers.profiler import Profiler
label_desc: Use image node_id 2 for calling the SimpleProfiler obj's underlying member method code with example usage: obj.start(action_name) without return types