protected void AddToMainThreadCommandHandler(AddToMainThreadCommand cmd) { #if PERFORMANCE_TEST var ptest = Service.Performance.PerformanceTest.Get(); ptest.Start("AddToMainThreadCommand"); #endif cmd.result = _service.AddToMainThread(cmd.act, cmd.global); #if PERFORMANCE_TEST // now stop the watches ptest.Stop("AddToMainThreadCommand"); #endif }
protected void AddToMainThreadCommandHandler(AddToMainThreadCommand cmd) { //Profiler.BeginSample("AddToMainThreadCommandHandler"); cmd.result = _service.AddToMainThread(cmd.act); //Profiler.EndSample(); }