Fix Tracy profiler client allocating memory by using OnDemand mode
This commit is contained in:
9
Source/ThirdParty/tracy/tracy.Build.cs
vendored
9
Source/ThirdParty/tracy/tracy.Build.cs
vendored
@@ -10,6 +10,11 @@ using Flax.Build.NativeCpp;
|
||||
/// </summary>
|
||||
public class tracy : ThirdPartyModule
|
||||
{
|
||||
/// <summary>
|
||||
/// Enables on-demand profiling.
|
||||
/// </summary>
|
||||
public static bool OnDemand = true;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void Init()
|
||||
{
|
||||
@@ -38,6 +43,10 @@ public class tracy : ThirdPartyModule
|
||||
options.PrivateDefinitions.Add("TRACY_DBGHELP_LOCK=DbgHelp");
|
||||
options.PrivateDefinitions.Add("TRACY_NO_INVARIANT_CHECK");
|
||||
}
|
||||
if (OnDemand)
|
||||
{
|
||||
options.PublicDefinitions.Add("TRACY_ON_DEMAND");
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user