mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 23:51:06 +00:00
libsysprof-analyze: add scaffolding for listing marks by name/group
This commit is contained in:
@ -1415,3 +1415,21 @@ sysprof_document_list_symbols_in_traceable (SysprofDocument *self,
|
|||||||
|
|
||||||
return G_LIST_MODEL (ret);
|
return G_LIST_MODEL (ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* sysprof_document_catalog_marks:
|
||||||
|
* @self: a #SysprofDocument
|
||||||
|
*
|
||||||
|
* Generates a catalog of marks which can be used to sort marks by
|
||||||
|
* group, then another catalog by name, which is then itself a #GListModel
|
||||||
|
* of #SysprofDocumentMark.
|
||||||
|
*
|
||||||
|
* Returns: (transfer full): a #SysprofMarkCatalog
|
||||||
|
*/
|
||||||
|
SysprofMarkCatalog *
|
||||||
|
sysprof_document_catalog_marks (SysprofDocument *self)
|
||||||
|
{
|
||||||
|
g_return_val_if_fail (SYSPROF_IS_DOCUMENT (self), NULL);
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|||||||
@ -27,6 +27,7 @@
|
|||||||
#include "sysprof-callgraph.h"
|
#include "sysprof-callgraph.h"
|
||||||
#include "sysprof-document-file.h"
|
#include "sysprof-document-file.h"
|
||||||
#include "sysprof-document-traceable.h"
|
#include "sysprof-document-traceable.h"
|
||||||
|
#include "sysprof-mark-catalog.h"
|
||||||
#include "sysprof-symbol.h"
|
#include "sysprof-symbol.h"
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
@ -58,6 +59,8 @@ GListModel *sysprof_document_list_counters (SysprofDocument
|
|||||||
SYSPROF_AVAILABLE_IN_ALL
|
SYSPROF_AVAILABLE_IN_ALL
|
||||||
GListModel *sysprof_document_list_marks (SysprofDocument *self);
|
GListModel *sysprof_document_list_marks (SysprofDocument *self);
|
||||||
SYSPROF_AVAILABLE_IN_ALL
|
SYSPROF_AVAILABLE_IN_ALL
|
||||||
|
SysprofMarkCatalog *sysprof_document_catalog_marks (SysprofDocument *self);
|
||||||
|
SYSPROF_AVAILABLE_IN_ALL
|
||||||
GListModel *sysprof_document_list_symbols_in_traceable (SysprofDocument *self,
|
GListModel *sysprof_document_list_symbols_in_traceable (SysprofDocument *self,
|
||||||
SysprofDocumentTraceable *traceable);
|
SysprofDocumentTraceable *traceable);
|
||||||
SYSPROF_AVAILABLE_IN_ALL
|
SYSPROF_AVAILABLE_IN_ALL
|
||||||
|
|||||||
Reference in New Issue
Block a user