GAMEDEV.NET
Profiling allocations caused by scripts
I'm trying to make a profiler for scripts to pinpoint hotspots in the code that allocate a lot of memory. To do so i need to have a callback execute whenever an object is created. I tried to use the context's line callback but it doesn't execute during the creation of an object. I think what's needed is a callback executed in asCScriptEngine::CreateScriptObject. Right before it returns the allocated object there should be an optional invocation of a callback that passes the type
0 Commentaires 0 Parts 26 Vue