mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-analyze: add equality function
This is helpful to see if two frames are the same underlying data frame.
This commit is contained in:
@ -275,3 +275,10 @@ sysprof_document_frame_get_time_offset (SysprofDocumentFrame *self)
|
|||||||
|
|
||||||
return self->time_offset;
|
return self->time_offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gboolean
|
||||||
|
sysprof_document_frame_equal (const SysprofDocumentFrame *a,
|
||||||
|
const SysprofDocumentFrame *b)
|
||||||
|
{
|
||||||
|
return a->frame == b->frame;
|
||||||
|
}
|
||||||
|
|||||||
@ -44,6 +44,9 @@ SYSPROF_AVAILABLE_IN_ALL
|
|||||||
gint64 sysprof_document_frame_get_time (SysprofDocumentFrame *self);
|
gint64 sysprof_document_frame_get_time (SysprofDocumentFrame *self);
|
||||||
SYSPROF_AVAILABLE_IN_ALL
|
SYSPROF_AVAILABLE_IN_ALL
|
||||||
gint64 sysprof_document_frame_get_time_offset (SysprofDocumentFrame *self);
|
gint64 sysprof_document_frame_get_time_offset (SysprofDocumentFrame *self);
|
||||||
|
SYSPROF_AVAILABLE_IN_ALL
|
||||||
|
gboolean sysprof_document_frame_equal (const SysprofDocumentFrame *a,
|
||||||
|
const SysprofDocumentFrame *b);
|
||||||
|
|
||||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofDocumentFrame, g_object_unref)
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofDocumentFrame, g_object_unref)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user