mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: track relative offset for frame
This is handy so that we don't have to keep multiple objects around to handle this request. Otherwise we'd need to keep references to the document and that is a bit annoying. This of course has a limit of about an hour (in tv_nsec), but that is far longer than we can realistically record anyway.
This commit is contained in:
@ -35,13 +35,15 @@ typedef struct _SysprofDocumentFrame SysprofDocumentFrame;
|
||||
typedef struct _SysprofDocumentFrameClass SysprofDocumentFrameClass;
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
GType sysprof_document_frame_get_type (void) G_GNUC_CONST;
|
||||
GType sysprof_document_frame_get_type (void) G_GNUC_CONST;
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
int sysprof_document_frame_get_cpu (SysprofDocumentFrame *self);
|
||||
int sysprof_document_frame_get_cpu (SysprofDocumentFrame *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
int sysprof_document_frame_get_pid (SysprofDocumentFrame *self);
|
||||
int sysprof_document_frame_get_pid (SysprofDocumentFrame *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gint64 sysprof_document_frame_get_time (SysprofDocumentFrame *self);
|
||||
gint64 sysprof_document_frame_get_time (SysprofDocumentFrame *self);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
gint64 sysprof_document_frame_get_time_offset (SysprofDocumentFrame *self);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofDocumentFrame, g_object_unref)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user