Re: Profiler to use with LuaJIT

  • From: Tom Yaxley <tommitytom@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 5 Apr 2013 19:33:48 +0100

+1 on ProFi - I've used it before and found it to be effective


On 5 April 2013 17:25, madigest i <madigest@xxxxxxxxxxxxx> wrote:

>
> Matt Campbell <mattcampbell@xxxxxxxxx> kirjoitti 5.huhti.2013 kello 18.26:
>
> > Would LuaProfiler be the best profiler to use with LuaJIT, or is there a
> better option?
>
>
> I have used this:
> https://gist.github.com/perky/2838755
>
> example:
>
> local ProFi = require 'ProFi'
> --ProFi:setGetTimeMethod( microSeconds )
> local useProfilier = true
>
> if useProfilier then ProFi:start() end
> -- code to profile
> if useProfilier then ProFi:stop() end
> if useProfilier then
>   ProFi:writeReport("profi.txt")
>   os.execute("edit profi.txt") -- open in TextWrangler in OSX
> end
>
> --
> Regards,
>
> Pasi Mankinen
> Finland
>
>
>
>
>

Other related posts: