Skip to content

a hook module for gathering statistics on executing time of functions

Notifications You must be signed in to change notification settings

Ron2014/lfunctimer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lfunctimer

a hook module for gathering statistics on executing time of functions

Installation

luarocks install --server=http://luarocks.org/manifests/utmhikari lfunctimer

examples

examples are in the tests lol~

local lfunctimer = require "lfunctimer"
lfunctimer.set_config({ key = "value" })  -- set config before start hook
lfunctimer.start()  -- set hook on "call"s and "return"s
-- do your stuff
lfunctimer.stop()  -- set hook to noop
lfunctimer.print_data()  -- print result of function timer
lfunctimer.reset()  -- reset lfunctimer.data

About

a hook module for gathering statistics on executing time of functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 72.0%
  • Lua 28.0%