mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
preprocessor define for profiler
This commit is contained in:
parent
6be9150223
commit
043269e6ac
@ -10,6 +10,8 @@
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
|
||||
<NoWarn>1701;1702;1591</NoWarn>
|
||||
|
||||
<DefineConstants>ENABLE_PROFILER</DefineConstants>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||
<DebugType>none</DebugType>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#define ENABLE_PROFILER
|
||||
#if ENABLE_PROFILER
|
||||
|
||||
using HarmonyLib;
|
||||
using System.Collections.Generic;
|
||||
@ -59,3 +59,5 @@ public static class ProfilerPatch
|
||||
// Main.Instance.ModHelper.Console.WriteLine($"[profiler] {__originalMethod.MethodName()} took {__state.Elapsed.TotalMilliseconds:f1} ms");
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
#define ENABLE_PROFILER
|
||||
|
||||
using NewHorizons.Utility.OWML;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user