mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-capture: update end time for marks
This commit is contained in:
@ -487,6 +487,10 @@ sysprof_capture_reader_read_mark (SysprofCaptureReader *self)
|
||||
mark->name[sizeof mark->name - 1] = 0;
|
||||
self->buf[self->pos + mark->frame.len - 1] = 0;
|
||||
|
||||
/* Maybe update end-time */
|
||||
if G_UNLIKELY ((mark->frame.time + mark->duration) > self->end_time)
|
||||
self->end_time = mark->frame.time + mark->duration;
|
||||
|
||||
return mark;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user