Files
sysprof/src/libsysprof-analyze/sysprof-symbol-private.h
Christian Hergert b3a4c295c3 libsysprof-analyze: add basic symbol cache
This relies on begin/end range for the symbols to create something akin to
an interval tree, albeit with GSequence. If performance needs to be
addressed, can probably augment SysprofSymbol for an interval rbtree.
2023-05-10 15:14:09 -07:00

47 lines
1.3 KiB
C

/*
* sysprof-symbol-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 "sysprof-symbol.h"
G_BEGIN_DECLS
struct _SysprofSymbol
{
GObject parent_instance;
GRefString *name;
GRefString *binary_path;
GRefString *binary_nick;
SysprofAddress begin_address;
SysprofAddress end_address;
};
SysprofSymbol *_sysprof_symbol_new (GRefString *name,
GRefString *binary_nick,
GRefString *binary_path,
SysprofAddress begin_address,
SysprofAddress end_address);
G_END_DECLS