private IEnumerator AutoProfile() (iterator) | Coroutine that takes a profile sample when FPS drops below 60, then waits 15 minutes. Never started in this code. |
private void OnDestroy() | Stops the coroutines. |
private void SendDiagnosticsToDatabase() | Caches the profiling data, logs it, fires the ServerProfile console event and resets the data. |
private IEnumerator SendDiagnosticsToDatabaseCoroutine() (iterator) | Coroutine that calls SendDiagnosticsToDatabase every DiagnosticsSendInterval seconds while the server exists. |
private void SendServerFpsToAllClients() | Sends a ServerDiagnostics message to each player flagged true in PlayersToSendTo. |
private IEnumerator SendServerFpsToClients() (iterator) | Coroutine that sends the server FPS every FpsSendInterval seconds while the server exists. |
private void Start() | Hooks server start and end so the coroutines start and stop with the server. |
private void StartUpdatingAndSending() | Creates the profiling data, inits the network profiler and starts both coroutines. |
private void StopUpdatingAndSending() | Stops both coroutines and clears IsActive. |