Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DNM] Revert "Profiler logs now sort by overtime and have a proper timestamp in the filename" #3600

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions code/__HELPERS/~monkestation-helpers/cmp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@
/// Use when you want a list of most to least severe wounds.
/proc/cmp_wound_severity_dsc(datum/wound/a, datum/wound/b)
return cmp_numeric_dsc(a.severity, b.severity)

/// Used to sort overtime in profiling data.
/proc/sort_overtime_dsc(list/a, list/b)
return b["over"] - a["over"]
2 changes: 0 additions & 2 deletions code/controllers/subsystem/init_profiler.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* monkestation edit: reimplemented in [monkestation\code\controllers\subsystem\init_profiler.dm]
#define INIT_PROFILE_NAME "init_profiler.json"

///Subsystem exists so we can separately log init time costs from the costs of general operation
Expand Down Expand Up @@ -27,4 +26,3 @@ SUBSYSTEM_DEF(init_profiler)
world.Profile(PROFILE_CLEAR) //Now that we're written this data out, dump it. We don't want it getting mixed up with our current round data

#undef INIT_PROFILE_NAME
monkestation end */
5 changes: 1 addition & 4 deletions code/controllers/subsystem/profiler.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ SUBSYSTEM_DEF(profiler)
var/fetch_cost = 0
var/write_cost = 0

/* monkestation edit: reimplemented in [monkestation\code\controllers\subsystem\profiler.dm]
/datum/controller/subsystem/profiler/stat_entry(msg)
msg += "F:[round(fetch_cost,1)]ms"
msg += "|W:[round(write_cost,1)]ms"
return msg
monkestation end */

/datum/controller/subsystem/profiler/Initialize()
if(CONFIG_GET(flag/auto_profile))
Expand Down Expand Up @@ -39,7 +37,6 @@ monkestation end */
world.Profile(PROFILE_STOP, type = "sendmaps")


/* monkestation edit: reimplemented in [monkestation\code\controllers\subsystem\profiler.dm]
/datum/controller/subsystem/profiler/proc/DumpFile()
var/timer = TICK_USAGE_REAL
var/current_profile_data = world.Profile(PROFILE_REFRESH, format = "json")
Expand All @@ -62,4 +59,4 @@ monkestation end */
WRITE_FILE(prof_file, current_profile_data)
WRITE_FILE(sendmaps_file, current_sendmaps_data)
write_cost = MC_AVERAGE(write_cost, TICK_DELTA_TO_MS(TICK_USAGE_REAL - timer))
monkestation end */

2 changes: 1 addition & 1 deletion monkestation/code/__HELPERS/files.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var/regex/whitelist_regex
if(whitelist)
// try not to look at it too hard. yes i wrote this by hand.
whitelist_regex = new("(?:\[\\/\\\\\]$|(?:^|\\\\|\\/)(?:[regex_quote_list(whitelist)]|(?:profiler|sendmaps)-\[0-9_\\-\]+)\\.(?:[regex_quote_list(valid_extensions)])$)", "i")
whitelist_regex = new("(?:\[\\/\\\\\]$|(?:^|\\\\|\\/)(?:[regex_quote_list(whitelist)]|(?:profiler|sendmaps)-\[0-9\]+)\\.(?:[regex_quote_list(valid_extensions)])$)", "i")

// wow why was this ever a parameter
var/root = "data/logs/"
Expand Down
28 changes: 0 additions & 28 deletions monkestation/code/controllers/subsystem/init_profiler.dm

This file was deleted.

42 changes: 0 additions & 42 deletions monkestation/code/controllers/subsystem/profiler.dm

This file was deleted.

2 changes: 0 additions & 2 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -5810,9 +5810,7 @@
#include "monkestation\code\controllers\subsystem\autotransfer.dm"
#include "monkestation\code\controllers\subsystem\economy.dm"
#include "monkestation\code\controllers\subsystem\glowshroom.dm"
#include "monkestation\code\controllers\subsystem\init_profiler.dm"
#include "monkestation\code\controllers\subsystem\job.dm"
#include "monkestation\code\controllers\subsystem\profiler.dm"
#include "monkestation\code\datums\action.dm"
#include "monkestation\code\datums\dna.dm"
#include "monkestation\code\datums\emotes.dm"
Expand Down
Loading