mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-capture: add file chunk frame type
This commit is contained in:
@ -151,6 +151,24 @@ sysprof_capture_writer_cat (SysprofCaptureWriter *self,
|
||||
break;
|
||||
}
|
||||
|
||||
case SYSPROF_CAPTURE_FRAME_FILE_CHUNK:
|
||||
{
|
||||
const SysprofCaptureFileChunk *frame;
|
||||
|
||||
if (!(frame = sysprof_capture_reader_read_file (reader)))
|
||||
goto panic;
|
||||
|
||||
sysprof_capture_writer_add_file (self,
|
||||
frame->frame.time,
|
||||
frame->frame.cpu,
|
||||
frame->frame.pid,
|
||||
frame->path,
|
||||
frame->is_last,
|
||||
frame->data,
|
||||
frame->len);
|
||||
break;
|
||||
}
|
||||
|
||||
case SYSPROF_CAPTURE_FRAME_LOG:
|
||||
{
|
||||
const SysprofCaptureLog *frame;
|
||||
|
||||
Reference in New Issue
Block a user