libsysprof: add coredump category

This just makes it easier to see if the time spent on something was
related to a coredump handler in the kernel.
This commit is contained in:
Christian Hergert
2023-07-28 10:49:14 -07:00
parent ee5ad3c916
commit afe71d7562
5 changed files with 11 additions and 4 deletions

View File

@ -144,6 +144,11 @@ JS:
* javascript inherit
Kernel:
do_coredump coredump inherit
* kernel inherit
libc:
poll main-loop inherit
select main-loop inherit

View File

@ -305,14 +305,11 @@ _sysprof_callgraph_categorize (SysprofCallgraph *self,
node->category = SYSPROF_CALLGRAPH_CATEGORY_CONTEXT_SWITCH;
break;
case SYSPROF_SYMBOL_KIND_KERNEL:
node->category = SYSPROF_CALLGRAPH_CATEGORY_KERNEL;
break;
case SYSPROF_SYMBOL_KIND_UNWINDABLE:
node->category = SYSPROF_CALLGRAPH_CATEGORY_UNWINDABLE;
break;
case SYSPROF_SYMBOL_KIND_KERNEL:
case SYSPROF_SYMBOL_KIND_USER:
node->category = _sysprof_callgraph_node_categorize (node);

View File

@ -69,6 +69,7 @@ typedef enum _SysprofCallgraphCategory
SYSPROF_CALLGRAPH_CATEGORY_A11Y,
SYSPROF_CALLGRAPH_CATEGORY_ACTIONS,
SYSPROF_CALLGRAPH_CATEGORY_CONTEXT_SWITCH,
SYSPROF_CALLGRAPH_CATEGORY_COREDUMP,
SYSPROF_CALLGRAPH_CATEGORY_CSS,
SYSPROF_CALLGRAPH_CATEGORY_GRAPHICS,
SYSPROF_CALLGRAPH_CATEGORY_ICONS,

View File

@ -143,6 +143,9 @@ sysprof_category_summary_get_category_name (SysprofCategorySummary *self)
case SYSPROF_CALLGRAPH_CATEGORY_ACTIONS:
return _("Actions");
case SYSPROF_CALLGRAPH_CATEGORY_COREDUMP:
return _("Crash Handler");
case SYSPROF_CALLGRAPH_CATEGORY_CONTEXT_SWITCH:
return _("Context Switches");