Changeset 359 for binary-improvements/MapRendering/Commands/webstat.cs
- Timestamp:
- Oct 29, 2019, 11:20:45 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Commands/webstat.cs
r325 r359 14 14 15 15 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) { 16 try { 17 int curHandlers = Web.currentHandlers; 18 int totalHandlers = Web.handlingCount; 19 long totalTime = Web.totalHandlingTime; 20 SdtdConsole.Instance.Output ("Current Web handlers: " + curHandlers + " - total: " + totalHandlers); 21 SdtdConsole.Instance.Output (" - Total time: " + totalTime + " µs - average time: " + 22 totalTime / totalHandlers + " µs"); 16 int curHandlers = Web.currentHandlers; 17 int totalHandlers = Web.handlingCount; 18 long totalTime = Web.totalHandlingTime; 19 SdtdConsole.Instance.Output ("Current Web handlers: " + curHandlers + " - total: " + totalHandlers); 20 SdtdConsole.Instance.Output (" - Total time: " + totalTime + " µs - average time: " + 21 totalTime / totalHandlers + " µs"); 23 22 24 curHandlers = WebCommandResult.currentHandlers; 25 totalHandlers = WebCommandResult.handlingCount; 26 totalTime = WebCommandResult.totalHandlingTime; 27 SdtdConsole.Instance.Output ("Current Web command handlers: " + curHandlers + " - total: " + 28 totalHandlers); 29 SdtdConsole.Instance.Output (" - Total time: " + totalTime + " µs" + 30 (totalHandlers > 0 31 ? " - average time: " + totalTime / totalHandlers + " µs" 32 : "")); 33 } catch (Exception e) { 34 Log.Out ("Error in webstat.Run: " + e); 35 } 23 curHandlers = WebCommandResult.currentHandlers; 24 totalHandlers = WebCommandResult.handlingCount; 25 totalTime = WebCommandResult.totalHandlingTime; 26 SdtdConsole.Instance.Output ("Current Web command handlers: " + curHandlers + " - total: " + 27 totalHandlers); 28 SdtdConsole.Instance.Output (" - Total time: " + totalTime + " µs" + 29 (totalHandlers > 0 30 ? " - average time: " + totalTime / totalHandlers + " µs" 31 : "")); 36 32 } 37 33 }
Note:
See TracChangeset
for help on using the changeset viewer.