mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: add callgraph flags for thread-ids
This allows you to set a flag to show the thread id of what was recorded. Use this to help disassociate similar threads in a process to figure out which thread is consuming a majority of the Total time of that process.
This commit is contained in:
@ -40,6 +40,7 @@ struct _SysprofDocumentTraceableInterface
|
||||
guint (*get_stack_addresses) (SysprofDocumentTraceable *self,
|
||||
guint64 *addresses,
|
||||
guint n_addresses);
|
||||
int (*get_thread_id) (SysprofDocumentTraceable *self);
|
||||
};
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
@ -51,5 +52,7 @@ SYSPROF_AVAILABLE_IN_ALL
|
||||
guint sysprof_document_traceable_get_stack_addresses (SysprofDocumentTraceable *self,
|
||||
guint64 *addresses,
|
||||
guint n_addresses);
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
int sysprof_document_traceable_get_thread_id (SysprofDocumentTraceable *self);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
Reference in New Issue
Block a user