mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
feat: make ETW configurable, doesn't actually do anything yet because we're stuck on .NET 5
This commit is contained in:
parent
e7b0da9f7a
commit
8744e82979
8 changed files with 18 additions and 5 deletions
|
|
@ -29,6 +29,7 @@ std::optional<CoreCLR> g_clr;
|
|||
|
||||
int InitializeClrAndGetEntryPoint(
|
||||
void* calling_module,
|
||||
bool enableEtw,
|
||||
std::wstring runtimeconfig_path,
|
||||
std::wstring module_path,
|
||||
std::wstring entrypoint_assembly_name,
|
||||
|
|
@ -49,10 +50,7 @@ int InitializeClrAndGetEntryPoint(
|
|||
SetEnvironmentVariable(L"DOTNET_TC_QuickJitForLoops", L"1");
|
||||
SetEnvironmentVariable(L"DOTNET_ReadyToRun", L"1");
|
||||
|
||||
#if NDEBUG
|
||||
// This might fix extremely bad performance in some algorithms on insider builds
|
||||
SetEnvironmentVariable(L"COMPlus_ETWEnabled", L"0");
|
||||
#endif
|
||||
SetEnvironmentVariable(L"COMPlus_ETWEnabled", enableEtw ? L"1" : L"0");
|
||||
|
||||
wchar_t* dotnet_path;
|
||||
wchar_t* _appdata;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ void ConsoleTeardown();
|
|||
|
||||
int InitializeClrAndGetEntryPoint(
|
||||
void* calling_module,
|
||||
bool enableEtw,
|
||||
std::wstring runtimeconfig_path,
|
||||
std::wstring module_path,
|
||||
std::wstring entrypoint_assembly_name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue