Files
sysprof/src/libsysprof-gtk/sysprof-callgraph-view-private.h
Christian Hergert 5b929b8d5d 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.
2023-06-14 15:11:56 -07:00

69 lines
1.8 KiB
C

/* sysprof-callgraph-view-private.h
*
* Copyright 2023 Christian Hergert <chergert@redhat.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#pragma once
#include <libpanel.h>
#include "sysprof-callgraph-view.h"
G_BEGIN_DECLS
#define SYSPROF_CALLGRAPH_VIEW_GET_CLASS(instance) G_TYPE_INSTANCE_GET_CLASS(instance, SYSPROF_TYPE_CALLGRAPH_VIEW, SysprofCallgraphViewClass)
struct _SysprofCallgraphView
{
GtkWidget parent_instance;
SysprofDocument *document;
SysprofCallgraph *callgraph;
GListModel *traceables;
GtkColumnView *callers_column_view;
GtkColumnView *descendants_column_view;
GtkColumnView *functions_column_view;
GtkColumnView *traceables_column_view;
GtkColumnView *traceable_column_view;
GtkCustomSorter *descendants_name_sorter;
GtkCustomSorter *functions_name_sorter;
GtkScrolledWindow *scrolled_window;
PanelPaned *right_paned;
GtkWidget *paned;
GCancellable *cancellable;
guint reload_source;
guint include_threads : 1;
};
struct _SysprofCallgraphViewClass
{
GtkWidgetClass parent_class;
gsize augment_size;
SysprofAugmentationFunc augment_func;
void (*load) (SysprofCallgraphView *self,
SysprofCallgraph *callgraph);
};
G_END_DECLS