Skip to content

Commit

Permalink
完善文档
Browse files Browse the repository at this point in the history
  • Loading branch information
leinlin committed Apr 7, 2020
1 parent 0283ac6 commit f535053
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
运行起来后totalLuaMemory为负数
>底层统计lua内存申请采用记录lua虚拟机总量来记录对应的GC,如果函数运行的中间发生了GC就会导致内存差值为负数,你可以把自动GC关闭掉后进行统计。
如何对Lua函数进行各种数据排序
>在搜索框中输入:[lua],然后点击右上角的merge按钮,最后点击各个数据标签进行排序
![](doc/sort.png)

如何定位Lua函数内存暴涨的点
>使用Record模式启动游戏,在想采样的地方点击StartRecord,截取完记录后,找一段明显内存上涨的地方,采样出来分析函数即可
![](doc/record.png)

ref的function代表什么
>这里存储的一般都是C#这里持有的回调函数,你可以每一次打开UI前先clear数据,然后进入UI后记录数据,释放UI后如果 还持有不少委托,就代表说泄漏了。
Expand Down
Binary file added doc/record.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/sort.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f535053

Please sign in to comment.