Miku-LuaProfiler icon indicating copy to clipboard operation
Miku-LuaProfiler copied to clipboard

Results 33 Miku-LuaProfiler issues
Sort by recently updated
recently updated
newest added

根据toluaL_ref的实现https://github.com/topameng/tolua_runtime/blob/master/tolua.c#L1469-L1492,数据仍然是存在_R中的,_R[5]位置只是存了一个反向索引,这里似乎认为数据也存在_R[5]中了 ![image](https://user-images.githubusercontent.com/21306025/129298568-40a97bd6-fa85-46de-8715-677587b32bd9.png)

看代码使用填写编辑器判断路径是否有对应关键字形式打开文件是非常愚蠢的行为。 ```C# static void OpenFileAtLineExternal(string filePath, int line) { string editorPath = LuaDeepProfilerSetting.Instance.luaIDE; // 没有path就弹出面板设置 if (string.IsNullOrEmpty(editorPath) || !File.Exists(editorPath)) { SetExternalEditorPath(); } System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo.FileName = editorPath;...

直接clone下来后,丢到项目工程目录下,unity无法启动,unity版本为2019

MarkRecord的一套api,调用时会有lua报错,DiffRecord会崩溃

最近在尝试使用Miku-LuaProfiler测试项目中的lua代码的性能。 项目使用的是2018.4/tolua,用的是Miku-LuaProfiler的master分支,开启了il2cpp。 打包之后在安卓机器上运行会crash,看logcat信息发现是空指针错误导致的,通过定位最后检查到出错的是这段代码。 在NativeAPI.cs类中(MikuHook.dll里的) ``` public static IntPtr GetFunctionAddr(MethodBase method) { return method?.MethodHandle.GetFunctionPointer() ?? IntPtr.Zero; } ``` 从后续的排查来看是MethodHandle是非空的,但`GetFunctionPointer()`返回的是null或者IntPtr.Zero。 我搜了搜没搜到有特地提到这个方法未实现的帖子或问答,从unity的[scripting restrictions](https://docs.unity3d.com/Manual/ScriptingRestrictions.html)页面来看,这个方法所在类使用了System.Runtime.Serialization,确实很有可能没被il2cpp支持。 发这个issue还是想确认下il2cpp下是否无法使用,因为没有看到有相关的issue。以及如果确定无法使用,是否有支持的办法/支持的打算。 顺便,mono下是可以跑并接收到数据的,可以在mono下对比并进行优化。只是因为最后发的包都是il2cpp的,如果可以的话,还是希望能在il2cpp下直接收集到数据。

NullReferenceException: Object reference not set to an instance of an object MikuLuaProfiler.GuiSkinManager+GuiStyleManager..ctor () (at Assets/LuaProfilerServer/Assets/Editor/Skin/GuiSkinManager.cs:107) MikuLuaProfiler.GuiSkinManager.get_Styles () (at Assets/LuaProfilerServer/Assets/Editor/Skin/GuiSkinManager.cs:200) MikuLuaProfiler.LuaProfilerWindow.DoChart () (at Assets/LuaProfilerServer/Assets/Editor/TreeView/LuaProfilerWindow.cs:504) MikuLuaProfiler.LuaProfilerWindow.OnGUI () (at Assets/LuaProfilerServer/Assets/Editor/TreeView/LuaProfilerWindow.cs:189) System.Reflection.MonoMethod.Invoke (System.Object obj,...

我在测试测试的时候, 点击 MarkStaticRecord 之后, 创建一个新tabel 插入一些数据,然后 记录二次快照(MarkLuaRecord),最后 点击 DiffRecord 对比快照, 没有任何日志 或 数据打印....(感觉 Table 引用读取有些bug) 框架:ToLua 实例代码如下: ` arr = {} for i=1,1000 do table.insert( arr, GameObject(tostring(i))) end `