libsysprof-analyze: remove pre-calculated time offsets

These are rather annoying because we want to avoid inflating the objects
in most cases anyway.
This commit is contained in:
Christian Hergert
2023-06-16 13:10:41 -07:00
parent 87e28a6062
commit 10b2ecd299
4 changed files with 16 additions and 57 deletions

View File

@ -220,16 +220,6 @@ _sysprof_document_frame_new (GMappedFile *mapped_file,
/* loose precision here after about 71 minutes */
self->time_offset = (guint)time_offset;
if (frame->type == SYSPROF_CAPTURE_FRAME_MARK)
{
SysprofDocumentMark *mark = (SysprofDocumentMark *)self;
gint64 capture_duration = end_time - begin_time;
gint64 duration = sysprof_document_mark_get_duration (mark);
mark->begin_fraction = time_offset / (double)capture_duration;
mark->end_fraction = (time_offset + duration) / (double)capture_duration;
}
return self;
}