Expand description
Provides a bunch of diagnostic commands.
Provides the following commands:
- SYS.COMMANDS: Lists all known commands, their number of calls and their average duration.
- SYS.CONNECTIONS: Lists all currently connected clients.
- SYS.KILL: Terminates the connection to the given client (selected by its peer address).
- SYS.MEM: Reports the amount of currently allocated memory.
Note that for development purposes in debug builds a command named SYS.PANIC is added as well. All this does is raising a panic which will eventually most probably crash the tokio thread or the whole process itself.
Functions
- Installs the diagnostic commands into the given platform.