public virtual void Run(Action <int> onFinishDelegate) { logger = new BenchmarkLogger("Test:" + base.name); this.onFinishDelegate = onFinishDelegate; currentStageIndex = 0; runNextStage(); }
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(); }
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); } }
public void Start() { logger = new BenchmarkLogger("RuntimeMemoryLogger"); }
public void Run(Action onFinishDelegate) { logger = new BenchmarkLogger("Stage:" + base.name); this.onFinishDelegate = onFinishDelegate; performBenchmark(); }