Exemple #1
0
        // JUST CALLED BY ExciteOMeterManager WHEN POST-PROCESSING IS FINISHED.
        public void FinalStopLogSession()
        {
            // Logging is finished
            currentlyLogging = false;
            ExciteOMeterManager.SetCurrentlyRecordingVariable(false);

            // Notify everyone before closing logs.
            // Specially for feature calculation that matches length of input data before log is closed.
            EoM_Events.Send_OnLoggingStateChanged(currentlyLogging);

            // STOP LOGGING
            SetLoggingState(false);
            CloseLogFiles();

            // Create JSON
            SessionVariablesController.instance.StopCurrentSession();

            if (recordingScreenshots)
            {
                ScreenRecorder.instance.StopScreenRecorder();
            }

            // Allow custom events from the end user
            ExciteOMeterManager.instance.OnStopSessionLog.Invoke();
        }
Exemple #2
0
        public void StartLogSession()
        {
            if (!currentlyLogging)
            {
                // Allow custom events from the end user
                ExciteOMeterManager.instance.OnStartSessionLog.Invoke();

                currentlyLogging = true;
                ExciteOMeterManager.SetCurrentlyRecordingVariable(true);

                // START LOGGING
                SetLoggingState(true);
                // Creates directory and files for CSV logging
                SetupNewLog();
                // Setups a JSON file to be saved in the same directory
                SessionVariablesController.instance.SetupNewSession(thisLogPath);

                // SEND EoM Event
                EoM_Events.Send_OnLoggingStateChanged(currentlyLogging);
            }
        }