public virtual void Run(Action <int> onFinishDelegate)
 {
     logger = new BenchmarkLogger("Test:" + base.name);
     this.onFinishDelegate = onFinishDelegate;
     currentStageIndex     = 0;
     runNextStage();
 }
Exemple #2
0
 public void RunTests(BenchmarkTest[] tests)
 {
     logger = new BenchmarkLogger("BenchmarkRun");
     logger.Print("benchmark-date> " + DateTime.Now);
     logger.Print("benchmark-device-model> " + SystemInfo.deviceModel);
     IsRunning        = true;
     this.tests       = tests;
     currentTestIndex = 0;
     runNextTest();
 }
Exemple #3
0
 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);
     }
 }
Exemple #4
0
 public void Start()
 {
     logger = new BenchmarkLogger("RuntimeMemoryLogger");
 }
Exemple #5
0
 public void Run(Action onFinishDelegate)
 {
     logger = new BenchmarkLogger("Stage:" + base.name);
     this.onFinishDelegate = onFinishDelegate;
     performBenchmark();
 }