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