code: def StartProfiling(self, configuration, identifier):
      
      if not configuration:
        return
  
      if configuration.HaveProfileTasks():
        self._tasks_profiler = profilers.TasksProfiler(identifier, configuration)
        self._tasks_profiler.Start()
docs: Starts profiling.
  
      Args:
        configuration (ProfilingConfiguration): profiling configuration.
        identifier (str): identifier of the profiling session used to create
            the sample filename.