Jump to content

Lua profiling


Rick
 Share

Recommended Posts

I attempted to use https://love2d.org/f....php?f=3&t=9387 which looks like it should work for LuaJIT.

 

However it seems like require is returning a boolean value as when I do his example in the post I get an error when I use ProFi:start() and it says "attempt to index global 'ProFi' (a boolean value).

 

Anyone able to get a Lua profiler to work with Leadwerks 3?

 

 

Why would

 

self.profiler = require("Scripts/ProFi.lua")

 

result in self.profiler being set to true and not the object that ProFi.lua returns?

 

 

[edit]

Nevermind I got it working. Just removed the local part of ProFi table inside the script so it's global.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...