Commit Graph

2 Commits

Author SHA1 Message Date
MrStonedOne
073bb122e2 debug verbs, less overhead, more sorts, fix for 16m call count bug 2017-10-26 15:01:41 -07:00
MrStonedOne
adb134e462 Line by line profiling system
This allows you to profile shit in a line by line fashion, getting a neat little report about how long (in milliseconds) was spent on what line(s).

Only one can be running at a time. You just have to call PROFILE_START then call PROFILE_TICK between lines, and finally, use profile_show(mob/client) to show the profile results to a mob. Profiles are sorted by avg cost per run.

Example usage: ef876c6fdb (diff-7664a9b9849fbd5b5d688654469b26d9R417)

Example output: https://gist.github.com/MrStonedOne/06a275be398499db41da702dde7fc518
2017-10-25 22:37:34 -07:00