Changeset 279 for binary-improvements/MapRendering/Commands/webstat.cs
- Timestamp:
- Jun 19, 2016, 1:52:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Commands/webstat.cs
r230 r279 19 19 { 20 20 try { 21 SdtdConsole.Instance.Output ("Current handlers: " + AllocsFixes.NetConnections.Servers.Web.Web.currentHandlers + " - total: " + AllocsFixes.NetConnections.Servers.Web.Web.handlingCount); 21 int curHandlers = AllocsFixes.NetConnections.Servers.Web.Web.currentHandlers; 22 int totalHandlers = AllocsFixes.NetConnections.Servers.Web.Web.handlingCount; 23 long totalTime = AllocsFixes.NetConnections.Servers.Web.Web.totalHandlingTime; 24 SdtdConsole.Instance.Output ("Current Web handlers: " + curHandlers + " - total: " + totalHandlers); 25 SdtdConsole.Instance.Output (" - Total time: " + totalTime + " µs - average time: " + (totalTime / totalHandlers) + " µs"); 26 27 curHandlers = AllocsFixes.NetConnections.Servers.Web.WebCommandResult.currentHandlers; 28 totalHandlers = AllocsFixes.NetConnections.Servers.Web.WebCommandResult.handlingCount; 29 totalTime = AllocsFixes.NetConnections.Servers.Web.WebCommandResult.totalHandlingTime; 30 SdtdConsole.Instance.Output ("Current Web command handlers: " + curHandlers + " - total: " + totalHandlers); 31 SdtdConsole.Instance.Output (" - Total time: " + totalTime + " µs" + (totalHandlers > 0 ? " - average time: " + (totalTime / totalHandlers) + " µs" : "")); 22 32 } catch (Exception e) { 23 33 Log.Out ("Error in webstat.Run: " + e);
Note:
See TracChangeset
for help on using the changeset viewer.