public void Run(BenchmarkRuntimeProfileEvents.RuntimeProfileStart profileStartEvent, Action <int> onFinishDelegate)
 {
     logger = new BenchmarkLogger("Stage:" + base.name);
     Service.Get <EventDispatcher>().DispatchEvent(profileStartEvent);
     this.onFinishDelegate = onFinishDelegate;
     try
     {
         setup();
         performBenchmark();
     }
     catch (Exception ex)
     {
         logger.Log("EXCEPTION: " + ex.Message);
         onFinish(1);
     }
 }