-
Notifications
You must be signed in to change notification settings - Fork 254
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
/serverperformance command (Server Performance Monitor) #1642
Conversation
Optional parameters are: start stop reset If no parameters are present, the current performance metrics are spit out. When disabled, overhead is the cost of some simple function calls and a bool check. When enabled, the additional cost is stopwatch events. In comparisson to the work that ACE does for normal processing, the work done when serverperformance is enabled is nearly 0. Default is disabled. Enable it to start up automatically in the config.js. This is recommend for most servers. Enable it at runtime using /serverperformance start
|
fartwhif, It is written in a way that will allow plugin consumption. ServerPerformanceMonitor is a public static class. I don't know how the plugins interact with the system yet, but, if they can access any of the static manager classes easily, then they will be able to control and get data from this resource. |
Nice, that's good to hear. Is there any way to have some kind of "streaming" mode, so that whenever the state changes that the new data, or the whole object, is then sent to all event subscribers? |
That woudldn't work for an object like this. The overhead would be immense. This manager can be called tends of thousands of times a second. It's written in a very basic way to maximize performance at the expense of a little readability. |
I see, so a wrapper that polls it would be in order. Was worth asking. Thanks! |
Optional parameters are:
start
stop
reset
If no parameters are present, the current performance metrics are spit out.
When disabled, overhead is the cost of some simple function calls and a bool check. When enabled, the additional cost is stopwatch events. In comparisson to the work that ACE does for normal processing, the work done when serverperformance is enabled is nearly 0.
Default is disabled.
Enable it to start up automatically in the config.js. This is recommend for most servers. Enable it at runtime using /serverperformance start