capture: add comment about frame tracking

This commit is contained in:
Christian Hergert
2020-02-11 18:07:31 -08:00
parent 75c966e1d2
commit b351e1a50a

View File

@ -419,6 +419,10 @@ sysprof_capture_reader_peek_frame (SysprofCaptureReader *self,
sysprof_capture_reader_bswap_frame (self, frame);
/* In case the capture did not update the end_time during normal usage,
* we can update our cached known end_time based on the greatest frame
* we come across.
*/
if (frame->time > self->end_time)
self->end_time = frame->time;