mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: ensure descendants view is categorized
This commit is contained in:
@ -248,6 +248,9 @@ sysprof_categories_lookup (SysprofCategories *categories,
|
||||
{
|
||||
GArray *rules;
|
||||
|
||||
if (categories == NULL)
|
||||
categories = sysprof_categories_get_default ();
|
||||
|
||||
if (binary_nick == NULL || symbol == NULL)
|
||||
return 0;
|
||||
|
||||
@ -277,3 +280,14 @@ sysprof_categories_lookup (SysprofCategories *categories,
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
SysprofCategories *
|
||||
sysprof_categories_get_default (void)
|
||||
{
|
||||
static SysprofCategories *instance;
|
||||
|
||||
if (instance == NULL)
|
||||
instance = sysprof_categories_new ();
|
||||
|
||||
return instance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user