mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: add vfunc for getting stack addresses
This allows us to avoid the function call overhead for each of the instruction pointers in the stack trace. Instead let the interface handle the decoding of the whole set.
This commit is contained in:
@ -34,9 +34,12 @@ struct _SysprofDocumentTraceableInterface
|
||||
{
|
||||
GTypeInterface parent;
|
||||
|
||||
guint (*get_stack_depth) (SysprofDocumentTraceable *self);
|
||||
guint64 (*get_stack_address) (SysprofDocumentTraceable *self,
|
||||
guint position);
|
||||
guint (*get_stack_depth) (SysprofDocumentTraceable *self);
|
||||
guint64 (*get_stack_address) (SysprofDocumentTraceable *self,
|
||||
guint position);
|
||||
guint (*get_stack_addresses) (SysprofDocumentTraceable *self,
|
||||
guint64 *addresses,
|
||||
guint n_addresses);
|
||||
};
|
||||
|
||||
SYSPROF_AVAILABLE_IN_ALL
|
||||
|
||||
Reference in New Issue
Block a user