feat: update the output timing for frame drop notifications

This commit is contained in:
slz
2026-05-21 16:55:36 +08:00
parent 9acb6ad225
commit 41cac868ec
2 changed files with 17 additions and 7 deletions
@@ -120,6 +120,7 @@ class FrameTimestampCsvLogger {
int64_t arrival_steady_us, bool publish_expected);
void populatePublishData(StreamState &state, TrackedStream stream, int64_t publish_system_us,
int64_t publish_steady_us);
void reportDropLogFormatOnce();
std::optional<int64_t> updateDelta(std::optional<int64_t> &previous, int64_t current);
@@ -143,6 +144,7 @@ class FrameTimestampCsvLogger {
std::atomic_bool shutdown_requested_{false};
bool writer_failed_ = false;
bool queue_warning_active_ = false;
bool drop_log_format_reported_ = false;
std::string csv_file_path_;
std::ofstream csv_stream_;
std::thread writer_thread_;