class_docstr: BasicProfiler is the default profiler, which is implemented based on
  cProfile and Accumulator
class_docstr_tok: ["BasicProfiler","is","the","default","profiler",",","which","is","implemented","based","on","cProfile","and","Accumulator"]
code: def __init__(self, ctx: "SparkContext") -> None:
      super().__init__(ctx)
      # Creates a new accumulator for combining the profiles of different
      # partitions of a stage
      self._accumulator = ctx.accumulator(None, PStatsParam)
  
imports: from typing import Any, Callable, Dict, List, Optional, Tuple, Type, TYPE_CHECKING, Union, cast
  import cProfile
  import inspect
  import pstats
  import linecache
  import os
  import atexit
  import sys
  import warnings
  from pyspark.accumulators import AccumulatorParam
  from pyspark.errors import PySparkRuntimeError
label_desc: Use image node_id 1 to create a new BasicProfiler object from inherited base classes: Profiler with example: obj = BasicProfiler(ctx)