Add using exact C# method profiler data for profiler events in overriden thunk method callbacks

This commit is contained in:
Wojtek Figat
2023-09-22 12:04:41 +02:00
parent 97ed46bc4f
commit abcfc8af35

View File

@@ -1452,7 +1452,8 @@ namespace Flax.Build.Bindings
var useThunk = buildData.Platform.HasDynamicCodeExecutionSupport && Configuration.AOTMode == DotNetAOTModes.None;
if (useThunk)
{
contents.AppendLine($" PROFILE_CPU_NAMED(\"{classInfo.FullNameManaged}::{functionInfo.Name}\");");
//contents.AppendLine($" PROFILE_CPU_NAMED(\"{classInfo.FullNameManaged}::{functionInfo.Name}\");");
contents.AppendLine(" PROFILE_CPU_SRC_LOC(method->ProfilerData);");
// Convert parameters into managed format as boxed values
var thunkParams = string.Empty;