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: https://github.com/tgstation/tgstation/pull/32022/commits/ef876c6fdb153e97d6ff954722dfde9c78eff315#diff-7664a9b9849fbd5b5d688654469b26d9R417
Example output: https://gist.github.com/MrStonedOne/06a275be398499db41da702dde7fc518
|
2017-10-25 22:37:34 -07:00 |
|