Basic auto profiler (#48672)

* Basic auto profiler

* Makes it update periodically in case of crash.

* informative comment.

* Early start & config upgrades.

* Fixup
This commit is contained in:
AnturK
2020-01-09 19:32:57 -05:00
committed by Emmett Gaines
parent ff77eff6eb
commit 6a62a139a8
8 changed files with 66 additions and 4 deletions
+2 -2
View File
@@ -839,7 +839,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
set name = "Start Line Profiling"
set desc = "Starts tracking line by line profiling for code lines that support it"
PROFILE_START
LINE_PROFILE_START
message_admins("<span class='adminnotice'>[key_name_admin(src)] started line by line profiling.</span>")
SSblackbox.record_feedback("tally", "admin_verb", 1, "Start Line Profiling")
@@ -850,7 +850,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
set name = "Stops Line Profiling"
set desc = "Stops tracking line by line profiling for code lines that support it"
PROFILE_STOP
LINE_PROFILE_STOP
message_admins("<span class='adminnotice'>[key_name_admin(src)] stopped line by line profiling.</span>")
SSblackbox.record_feedback("tally", "admin_verb", 1, "Stop Line Profiling")