leinlin / Miku-LuaProfiler

Apache License 2.0
1.88k stars 435 forks source link

tolua运行项目栈溢出 #2

Closed Gtane closed 5 years ago

Gtane commented 5 years ago

我使用的2.0版的,一运行项目就栈溢出。 然后我修改了Sample.cs 第148行,把“item.fahter = this;”修改为“item.fahter = s;”,就好了

Gtane commented 5 years ago

用于采样的缓存容器是List,我在跑call次数多的逻辑代码非常卡,用List模拟Stack的Pop操作对于比较大的List开销很客观,所以我修改了一下LuaProfiler,把容器类型改成stack,变得流畅了很多,希望这个工具越做越好! LuaProfiler.txt

leinlin commented 5 years ago

使用最新的2.1,之前是beta版本有很多BUG