转换小游戏项目的时候已经勾选了 导出选项"Profiling Funcs"与"Profiling Memory" 。然后在安卓真机上面运行起来,然后点击左上角的 Profiling Dump 按钮就报错了,也没有得到导出的 内存数据快照。
下面是报错的堆栈信息:
exception thrown: TypeError: Cannot read properties of undefined (reading 'onDump'),TypeError: Cannot read properties of undefined (reading 'onDump') at _WXProfilingMemoryDump (https://usr/game.js:187:126888) at invoke_iiii (https://usr/game.js:197:247095) at browserIterationFunc (https://usr/game.js:197:48355) at callUserCallback (https://usr/game.js:197:513) at Object.runIter (https://usr/game.js:197:1810) at Browser_mainLoop_runner (https://usr/game.js:191:46) at Function.<anonymous> (https://usr/game.js:103:885) at Function.<anonymous> (https://lib/WAGameSubContext.js:1:188430)
麻烦大佬们看下怎么解决这个问题,项目目前需要进行内存分析和优化。