Profiler information

Hi,

Is it possible to access the profile information via code during runtime, for published projects?
I’d like to free memory on certain assets based on if memory exceeds a limit.

Thanks,

  • Anton

Hi @Anton_Gunaratnam_s_S,

Somebody asked something similar recently, check this post:

IIRC, the memory stats are not part of the production version of the engine.

You can either create a fork of the PlayCanvas engine and include the memory stats to swap out in the published build or use https://code.playcanvas.com/playcanvas-stable.prf.js which has all the profile stats but not the debug code.

1 Like