mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-capture: add log frame type
This is useful to interleave logs with the capture so that we can have correlation without interjecting them into mark fields.
This commit is contained in:
@ -151,6 +151,23 @@ sysprof_capture_writer_cat (SysprofCaptureWriter *self,
|
||||
break;
|
||||
}
|
||||
|
||||
case SYSPROF_CAPTURE_FRAME_LOG:
|
||||
{
|
||||
const SysprofCaptureLog *frame;
|
||||
|
||||
if (!(frame = sysprof_capture_reader_read_log (reader)))
|
||||
goto panic;
|
||||
|
||||
sysprof_capture_writer_add_log (self,
|
||||
frame->frame.time,
|
||||
frame->frame.cpu,
|
||||
frame->frame.pid,
|
||||
frame->severity,
|
||||
frame->domain,
|
||||
frame->message);
|
||||
break;
|
||||
}
|
||||
|
||||
case SYSPROF_CAPTURE_FRAME_MAP:
|
||||
{
|
||||
const SysprofCaptureMap *frame;
|
||||
|
||||
Reference in New Issue
Block a user