Add another benchmark entry and correct one

This commit is contained in:
Flamefire committed 2014-09-24 19:15:04 +02:00
1 parent bb146b66a3
commit 2ba5f9ee7f
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -373,9 +373,9 @@ namespace Vocaluxe.Base
if (CConfig.CoverLoading == ECoverLoading.TR_CONFIG_COVERLOADING_ATSTART) if (CConfig.CoverLoading == ECoverLoading.TR_CONFIG_COVERLOADING_ATSTART)
{ {
CLog.StartBenchmark("Load Covers/Notes"); CLog.StartBenchmark("Load Covers");
_LoadCover(); _LoadCover();
CLog.StopBenchmark("Load Covers/Notes"); CLog.StopBenchmark("Load Covers");
} }
CLog.StopBenchmark("Load Songs "); CLog.StopBenchmark("Load Songs ");
} }
+2 -2
View File
@@ -81,7 +81,7 @@ namespace Vocaluxe
{ {
// Init Log // Init Log
CLog.Init(); CLog.Init();
CLog.StartBenchmark("Init Program");
if (!CProgrammHelper.CheckRequirements()) if (!CProgrammHelper.CheckRequirements())
return; return;
CProgrammHelper.Init(); CProgrammHelper.Init();
@@ -235,6 +235,7 @@ namespace Vocaluxe
//Only reasonable point to call GC.Collect() because initialization may cause lots of garbage //Only reasonable point to call GC.Collect() because initialization may cause lots of garbage
//Rely on GC doing its job afterwards and call Dispose methods where appropriate //Rely on GC doing its job afterwards and call Dispose methods where appropriate
GC.Collect(); GC.Collect();
CLog.StopBenchmark("Init Program");
} }
catch (Exception e) catch (Exception e)
{ {
@@ -250,7 +251,6 @@ namespace Vocaluxe
// Start Main Loop // Start Main Loop
if (_SplashScreen != null) if (_SplashScreen != null)
_SplashScreen.Close(); _SplashScreen.Close();
CVocaluxeServer.Start();
CDraw.MainLoop(); CDraw.MainLoop();
} }