diff options
| author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2020-07-23 22:30:16 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-24 00:30:16 +0200 |
| commit | 3c0ac7302f902d1811d2c215217a3d701f8b5b19 (patch) | |
| tree | 0b9614483e35bdaff8f139976ee4272544e5b7d9 /src/server/scripts/Commands | |
| parent | 880a7363faa2e0b3f91f3beddd83a31d30c4b5cb (diff) | |
Core/Metric: Add more metrics about World::Update() loop (#25098)
* Core/Metric: Add more metrics about World::Update() loop
* Add new Performance profiling grafana dashboard
* Add new cmake setting WITHOUT_METRICS that disables all metrics
As new metrics are added, someone might want to disable them if unused.
* Add more metrics about World::Update() loop
* Remove old performance profiling features
Remove "server set difftime" command, "-RecordUpdateTimeDiffInterval" and "MinRecordUpdateTimeDiff" worldserver config settings and their related code.
The whole UpdateTime class could be removed too.
* Update and rename 2020_07_99_99_world.sql to 2020_07_24_00_world.sql
Diffstat (limited to 'src/server/scripts/Commands')
| -rw-r--r-- | src/server/scripts/Commands/cs_server.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/server/scripts/Commands/cs_server.cpp b/src/server/scripts/Commands/cs_server.cpp index dca410d2027..1bcff8d97f5 100644 --- a/src/server/scripts/Commands/cs_server.cpp +++ b/src/server/scripts/Commands/cs_server.cpp @@ -84,7 +84,6 @@ public: static std::vector<ChatCommand> serverSetCommandTable = { - { "difftime", rbac::RBAC_PERM_COMMAND_SERVER_SET_DIFFTIME, true, &HandleServerSetDiffTimeCommand, "" }, { "loglevel", rbac::RBAC_PERM_COMMAND_SERVER_SET_LOGLEVEL, true, &HandleServerSetLogLevelCommand, "" }, { "motd", rbac::RBAC_PERM_COMMAND_SERVER_SET_MOTD, true, &HandleServerSetMotdCommand, "" }, { "closed", rbac::RBAC_PERM_COMMAND_SERVER_SET_CLOSED, true, &HandleServerSetClosedCommand, "" }, @@ -439,26 +438,6 @@ public: return true; } - // set diff time record interval - static bool HandleServerSetDiffTimeCommand(ChatHandler* /*handler*/, char const* args) - { - if (!*args) - return false; - - char* newTimeStr = strtok((char*)args, " "); - if (!newTimeStr) - return false; - - int32 newTime = atoi(newTimeStr); - if (newTime < 0) - return false; - - sWorldUpdateTime.SetRecordUpdateTimeInterval(newTime); - printf("Record diff every %i ms\n", newTime); - - return true; - } - private: static bool ParseExitCode(char const* exitCodeStr, int32& exitCode) { |
