Add ignoring memory allocations from profiling tools in Editor Profiler

This commit is contained in:
Wojtek Figat
2021-05-30 14:11:49 +02:00
parent 9c66ac4656
commit 2a3a15533c
2 changed files with 13 additions and 0 deletions

View File

@@ -24,6 +24,17 @@ namespace FlaxEngine
}
}
}
public unsafe bool NameStartsWith(string prefix)
{
fixed (char* name = &Name0)
{
fixed (char* p = prefix)
{
return Utils.MemoryCompare(new IntPtr(name), new IntPtr(p), (ulong)(prefix.Length * 2)) == 0;
}
}
}
}
}
}