mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 15:40:53 +00:00
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.
This commit is contained in:
@ -25,8 +25,22 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
SysprofSymbol *_sysprof_symbol_new (GRefString *name,
|
||||
GRefString *binary_nick,
|
||||
GRefString *binary_path);
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user