mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-capture: add support for DBusMessage frames
These are still captive to the max size of a SysprofCaptureFrame, but most messages fit into that.
This commit is contained in:
@ -391,6 +391,23 @@ sysprof_capture_writer_cat (SysprofCaptureWriter *self,
|
||||
break;
|
||||
}
|
||||
|
||||
case SYSPROF_CAPTURE_FRAME_DBUS_MESSAGE:
|
||||
{
|
||||
const SysprofCaptureDBusMessage *frame;
|
||||
|
||||
if (!(frame = sysprof_capture_reader_read_dbus_message (reader)))
|
||||
goto panic;
|
||||
|
||||
sysprof_capture_writer_add_dbus_message (self,
|
||||
frame->frame.time,
|
||||
frame->frame.cpu,
|
||||
frame->frame.pid,
|
||||
frame->flags,
|
||||
frame->message,
|
||||
frame->message_len);
|
||||
break;
|
||||
}
|
||||
|
||||
case SYSPROF_CAPTURE_FRAME_SAMPLE:
|
||||
{
|
||||
const SysprofCaptureSample *frame;
|
||||
|
||||
Reference in New Issue
Block a user