PageRenderTime 46ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/cities/PhotonServerSDK/src-server/CounterPublisher/SocketServerCounterSchema.cs

https://code.google.com/p/proglabs/
C# | 187 lines | 127 code | 49 blank | 11 comment | 0 complexity | 7f4f5ad10922e3e96be42e7ea701dba4 MD5 | raw file
Possible License(s): LGPL-2.1, MPL-2.0-no-copyleft-exception, LGPL-3.0, BSD-3-Clause, Apache-2.0, LGPL-2.0
  1. // --------------------------------------------------------------------------------------------------------------------
  2. // <copyright file="SocketServerCounterSchema.cs" company="Exit Games GmbH">
  3. // Copyright (c) Exit Games GmbH. All rights reserved.
  4. // </copyright>
  5. // <summary>
  6. // Defines the SocketServerCounterSchema type.
  7. // </summary>
  8. // --------------------------------------------------------------------------------------------------------------------
  9. // ReSharper disable InconsistentNaming
  10. namespace Photon.CounterPublisher
  11. {
  12. public static class SocketServerCounterSchema
  13. {
  14. public static class Common
  15. {
  16. public static readonly string CategoryName = "Photon Socket Server";
  17. public static readonly string BytesInCounter = "Bytes in";
  18. public static readonly string BytesInPerSecondCounter = "Bytes in/sec";
  19. public static readonly string BytesOutCounter = "Bytes out";
  20. public static readonly string BytesOutPerSecondCounter = "Bytes out/sec";
  21. public static readonly string PeersTotalCounter = "Peers";
  22. public static readonly string ConnectionsActiveCounter = "Connections Active";
  23. public static readonly string ClrCommandsPerSecondCounter = "CLR commands/sec";
  24. public static readonly string CommandsInCounter = "Commands in";
  25. public static readonly string CommandsInCounterPerSecond = "Commands in/sec";
  26. public static readonly string CommandsOutCounter = "Commands out";
  27. public static readonly string CommandsOutCounterPerSecond = "Commands out/sec";
  28. public static readonly string TotalBuffersCounter = "IO Buffers Total";
  29. public static readonly string TotalBuffersPlusPerSecondCounter = "IO Buffers Total +/sec";
  30. public static readonly string TotalBuffersMinusPerSecondCounter = "IO Buffers Total -/sec";
  31. public static readonly string BuffersInUseCounter = "IO Buffers In Use";
  32. public static readonly string BuffersInUsePlusPerSecondCounter = "IO Buffers In Use +/sec";
  33. public static readonly string BuffersInUseMinusPerSecondCounter = "IO Buffers In Use -/sec";
  34. public static readonly string TotalSocketsCounter = "Sockets Total";
  35. public static readonly string TotalSocketsPlusPerSecondCounter = "Sockets Total +/sec";
  36. public static readonly string TotalSocketsMinusPerSecondCounter = "Sockets Total -/sec";
  37. public static readonly string SocketsInUseCounter = "Sockets In Use";
  38. public static readonly string SocketsInUsePlusPerSecondCounter = "Sockets In Use +/sec";
  39. public static readonly string SocketsInUseMinusPerSecondCounter = "Sockets In Use -/sec";
  40. }
  41. public static class Udp
  42. {
  43. public static readonly string CategoryName = "Photon Socket Server: UDP";
  44. public static readonly string UdpBytesInCounter = "Bytes in";
  45. public static readonly string UdpBytesInPerSecondCounter = "Bytes in/sec";
  46. public static readonly string UdpBytesOutCounter = "Bytes out";
  47. public static readonly string UdpBytesOutPerSecondCounter = "Bytes out/sec";
  48. public static readonly string DatagramsInCounter = "Datagrams in";
  49. public static readonly string DatagramsInPerSecondCounter = "Datagrams in/sec";
  50. public static readonly string DatagramsOutCounter = "Datagrams out";
  51. public static readonly string DatagramsOutPerSecondCounter = "Datagrams out/sec";
  52. public static readonly string PendingRecvsCounter = "Pending Recvs";
  53. public static readonly string UdpPeersCounter = "Peers";
  54. public static readonly string UdpConnectionsActiveCounter = "Connections Active";
  55. public static readonly string UdpClrCommandsPerSecondCounter = "CLR commands/sec";
  56. public static readonly string UdpCommandsInCounter = "Commands in";
  57. public static readonly string UdpCommandsInCounterPerSecond = "Commands in/sec";
  58. public static readonly string UdpCommandsOutCounter = "Commands out";
  59. public static readonly string UdpCommandsOutCounterPerSecond = "Commands out/sec";
  60. }
  61. public static class Tcp
  62. {
  63. public static readonly string CategoryName = "Photon Socket Server: TCP";
  64. public static readonly string TcpBytesInCounter = "Bytes in";
  65. public static readonly string TcpBytesInPerSecondCounter = "Bytes in/sec";
  66. public static readonly string TcpBytesOutCounter = "Bytes out";
  67. public static readonly string TcpBytesOutPerSecondCounter = "Bytes out/sec";
  68. public static readonly string TcpPeersCounter = "Peers";
  69. public static readonly string TcpConnectionsActiveCounter = "Connections Active";
  70. public static readonly string TcpClrCommandsPerSecondCounter = "CLR commands/sec";
  71. public static readonly string TcpCommandsInCounter = "Commands in";
  72. public static readonly string TcpCommandsInCounterPerSecond = "Commands in/sec";
  73. public static readonly string TcpCommandsOutCounter = "Commands out";
  74. public static readonly string TcpCommandsOutCounterPerSecond = "Commands out/sec";
  75. }
  76. public static class Threading
  77. {
  78. public static readonly string CategoryName = "Photon Socket Server: Threads and Queues";
  79. public static readonly string IoThreadsActiveCounter = "IO Threads Active";
  80. public static readonly string IoThreadsProcessingCounter = "IO Threads Processing";
  81. public static readonly string IoThreadsEventsPerSecondCounter = "IO Threads Events/sec";
  82. public static readonly string BusinessLogicThreadsActiveCounter = "Business Logic Threads Active";
  83. public static readonly string BusinessLogicThreadsProcessingCounter = "Business Logic Threads Processing";
  84. public static readonly string BusinessLogicThreadsEventsPerSecondCounter = "Business Logic Threads Events/sec";
  85. public static readonly string BusinessLogicQueueCounter = "Business Logic Queue";
  86. public static readonly string BusinessLogicQueueAddPerSecondCounter = "Business Logic Queue +/sec";
  87. public static readonly string BusinessLogicQueueRemovePerSecondCounter = "Business Logic Queue -/sec";
  88. public static readonly string EnetThreadsActiveCounter = "ENet Threads Active";
  89. public static readonly string EnetThreadsProcessingCounter = "ENet Threads Processing";
  90. public static readonly string EnetThreadsEventsPerSecondCounter = "ENet Threads Events/sec";
  91. public static readonly string EnetQueueCounter = "ENet Queue";
  92. public static readonly string EnetQueueAddPerSecondCounter = "ENet Queue +/sec";
  93. public static readonly string EnetQueueRemovePerSecondCounter = "ENet Queue -/sec";
  94. public static readonly string EnetTimerThreadsProcessingCounter = "ENet Timer Threads Processing";
  95. public static readonly string EnetTimerThreadEventsPerSecondCounter = "ENet Timer Thread Events/sec";
  96. }
  97. public static class Enet
  98. {
  99. public static readonly string CategoryName = "Photon Socket Server: ENet";
  100. public static readonly string ReliableCommandsQueuedInCounter = "Reliable commands queued in";
  101. public static readonly string ReliableCommandsQueuedOutCounter = "Reliable commands queued out";
  102. public static readonly string CommandsOutPerSecondCounter = "Outgoing commands/sec";
  103. public static readonly string ReliableCommandsOutPerSecondCounter = "Reliable commands out/sec";
  104. public static readonly string UnreliableCommandsOutPerSecondCounter = "Unreliable commands out/sec";
  105. public static readonly string UnreliableCommandsThrottledPerSecondCounter = "Unreliable commands throttled/sec";
  106. public static readonly string IncomingReliableCommandDroppedPerSecondCounter = "Reliable commands dropped/sec";
  107. public static readonly string IncomingUnreliableCommandDroppedPerSecondCounter = "Unreliable commands dropped/sec";
  108. public static readonly string ACKsInCounter = "Acknowledgements in";
  109. public static readonly string ACKsInPerSecondCounter = "Acknowledgements in/sec";
  110. public static readonly string PingsInCounter = "Pings in";
  111. public static readonly string PingsInPerSecondCounter = "Pings in/sec";
  112. public static readonly string ACKsOutCounter = "Acknowledgements out";
  113. public static readonly string ACKsOutPerSecondCounter = "Acknowledgements out/sec";
  114. public static readonly string PingsOutCounter = "Pings out";
  115. public static readonly string PingsOutPerSecondCounter = "Pings out/sec";
  116. public static readonly string CommandsResentCounter = "Commands resent";
  117. public static readonly string CommandsResentPerSecondCounter = "Commands resent/sec";
  118. public static readonly string TimeoutDisconnectCounter = "Timeout disconnects";
  119. public static readonly string TimeoutDisconnectPerSecondCounter = "Timeout disconnects/sec";
  120. public static readonly string RateLimitQueueBytesAddedPerSecondCounter = "Transmit Rate Limit Bytes Queued +/sec";
  121. public static readonly string RateLimitQueueBytesRemovedPerSecondCounter = "Transmit Rate Limit Bytes Queued -/sec";
  122. public static readonly string RateLimitQueueCounter = "Transmit Rate Limit Bytes Queued";
  123. public static readonly string RateLimitQueueDiscardedCounter = "Transmit Rate Limit Bytes Discarded";
  124. public static readonly string EnetTimersActiveCounter = "Timers Active";
  125. public static readonly string EnetTimersCreatedPerSecondCounter = "Timers Created/sec";
  126. public static readonly string EnetTimersDestroyedPerSecondCounter = "Timers Destroyed/sec";
  127. public static readonly string EnetTimersSetCounter = "Timers Set";
  128. public static readonly string EnetTimersSetPerSecondCounter = "Timers Set/sec";
  129. public static readonly string EnetTimersResetPerSecondCounter = "Timers Reset/sec";
  130. public static readonly string EnetTimerEventsPerSecondCounter = "Timer Events/sec";
  131. public static readonly string EnetTimersCancelledPerSecondCounter = "Timers Cancelled/sec";
  132. public static readonly string TimeSpentInServerInCounter = "Time Spent In Server: In (ms)";
  133. //// public static readonly string timeSpentInServerInAverage = "Time Spent In Server: In (ms, Average)";
  134. //// public static readonly string timeSpentInServerInAverageBase = "Time Spent In Server: In (ms, Average Base Not Displayed)";
  135. public static readonly string TimeSpentInServerOutCounter = "Time Spent In Server: Out (ms)";
  136. }
  137. }
  138. }