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()
P#78528 2020-06-26 05:28 ( Edited 2020-06-26 20:39)


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-18 00:11:25 | 0.009s | Q:15