Log In  


Cart #jufohibzu-2 | 2020-06-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

This is a basic, and not very efficient benchmarking/profiling cart.

It can handle simple nesting and repeated calls for a given label, averaging the results.

Usage

Begin and end profiling:

bm("Label")
-- code
bm()

Call at the beginning of update to clear stored data:

bm:reset()

Enable or disable benchmarking:

bm:toggle()

Show benchmarking results when enabled:

bm:draw()
1



[Please log in to post a comment]