mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: move stack-depth to SysprofDocumentTraceable
This makes the property for depth a requirement, which will allow for easier quierying from various listmodel filters.
This commit is contained in:
@ -28,6 +28,21 @@ G_DEFINE_INTERFACE (SysprofDocumentTraceable, sysprof_document_traceable, SYSPRO
|
||||
static void
|
||||
sysprof_document_traceable_default_init (SysprofDocumentTraceableInterface *iface)
|
||||
{
|
||||
/**
|
||||
* SysprofDocumentTraceable:stack-depth:
|
||||
*
|
||||
* The "stack-depth" property contains the number of addresses collected
|
||||
* in the backtrace.
|
||||
*
|
||||
* You may use this value to retrieve the addresses from 0 to ("stack-depth"-1)
|
||||
* by calling sysprof_document_traceable_get_stack_address().
|
||||
*
|
||||
* Since: 45
|
||||
*/
|
||||
g_object_interface_install_property (iface,
|
||||
g_param_spec_uint ("stack-depth", NULL, NULL,
|
||||
0, G_MAXUINT16, 0,
|
||||
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)));
|
||||
}
|
||||
|
||||
guint
|
||||
|
||||
Reference in New Issue
Block a user