Add missing trace log packs

This commit is contained in:
Jorge Martín 2025-12-10 15:55:52 +01:00 committed by Jorge Martin Espinosa
parent 27cb88d88e
commit 881877b23e
2 changed files with 8 additions and 0 deletions

View file

@ -20,6 +20,12 @@ enum class TraceLogPack(val key: String) {
},
NOTIFICATION_CLIENT("notification_client") {
override val title: String = "Notification Client"
},
SYNC_PROFILING("sync_profiling") {
override val title: String = "Sync Profiling"
},
LATEST_EVENTS("latest_events") {
override val title = "Latest Events"
};
abstract val title: String

View file

@ -16,6 +16,8 @@ fun TraceLogPack.map(): RustTraceLogPack = when (this) {
TraceLogPack.EVENT_CACHE -> RustTraceLogPack.EVENT_CACHE
TraceLogPack.TIMELINE -> RustTraceLogPack.TIMELINE
TraceLogPack.NOTIFICATION_CLIENT -> RustTraceLogPack.NOTIFICATION_CLIENT
TraceLogPack.LATEST_EVENTS -> RustTraceLogPack.LATEST_EVENTS
TraceLogPack.SYNC_PROFILING -> RustTraceLogPack.SYNC_PROFILING
}
fun Collection<TraceLogPack>.map(): List<RustTraceLogPack> {