EosMetrics.EventRecorder.prototype.record_stop_sync
function record_stop_sync(event_id: String, key: GLib.Variant, auxiliary_payload: GLib.Variant): void {
// Gjs wrapper for emtr_event_recorder_record_stop_sync()
}
Make a best-effort to record the fact that an event of type event_id stopped at the current time. Behaves like EosMetrics.EventRecorder.prototype.record_stop but executes synchronously, blocking until a timeout expires or the event recorder daemon has received the event sequence. Generally prefer EosMetrics.EventRecorder.prototype.record_stop in UI threads, but use EosMetrics.EventRecorder.prototype.record_stop_sync instead for the sake of reliability when recording an event sequence from a process that is about to close.
Since 0.4
- event_id
an RFC 4122 UUID representing the type of event that took place
- key
the identifier used to associate the stop of the event with the start and any progress
- auxiliary_payload
miscellaneous data to associate with the events. Must not contain maybe variants as they are not compatible with D-Bus.