Debian Codegraph @

src/libsysprof/sysprof-document-counter.h

raw
1 /* sysprof-document-counter.h
2 *
3 * Copyright 2023 Christian Hergert <[email protected]>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * SPDX-License-Identifier: GPL-3.0-or-later
19 */
20
21 #pragma once
22
23 #include <glib-object.h>
24
25 #include <sysprof-capture.h>
26
27 G_BEGIN_DECLS
28
29 #define SYSPROF_TYPE_DOCUMENT_COUNTER (sysprof_document_counter_get_type())
30
31 SYSPROF_AVAILABLE_IN_ALL
32 G_DECLARE_FINAL_TYPE (SysprofDocumentCounter, sysprof_document_counter, SYSPROF, DOCUMENT_COUNTER, GObject)
33
34 SYSPROF_AVAILABLE_IN_ALL
35 char *sysprof_document_counter_dup_key (SysprofDocumentCounter *self);
36 SYSPROF_AVAILABLE_IN_ALL
37 const char *sysprof_document_counter_get_category (SysprofDocumentCounter *self);
38 SYSPROF_AVAILABLE_IN_ALL
39 const char *sysprof_document_counter_get_description (SysprofDocumentCounter *self);
40 SYSPROF_AVAILABLE_IN_ALL
41 const char *sysprof_document_counter_get_name (SysprofDocumentCounter *self);
42 SYSPROF_AVAILABLE_IN_ALL
43 guint sysprof_document_counter_get_id (SysprofDocumentCounter *self);
44 SYSPROF_AVAILABLE_IN_ALL
45 GType sysprof_document_counter_get_value_type (SysprofDocumentCounter *self);
46 SYSPROF_AVAILABLE_IN_ALL
47 guint sysprof_document_counter_get_n_values (SysprofDocumentCounter *self);
48 SYSPROF_AVAILABLE_IN_ALL
49 void sysprof_document_counter_get_value (SysprofDocumentCounter *self,
50 guint nth,
51 gint64 *time,
52 GValue *value);
53 SYSPROF_AVAILABLE_IN_ALL
54 gint64 sysprof_document_counter_get_value_int64 (SysprofDocumentCounter *self,
55 guint nth,
56 gint64 *time);
57 SYSPROF_AVAILABLE_IN_ALL
58 double sysprof_document_counter_get_value_double (SysprofDocumentCounter *self,
59 guint nth,
60 gint64 *time);
61 SYSPROF_AVAILABLE_IN_ALL
62 double sysprof_document_counter_get_max_value (SysprofDocumentCounter *self);
63 SYSPROF_AVAILABLE_IN_ALL
64 double sysprof_document_counter_get_min_value (SysprofDocumentCounter *self);
65
66 G_END_DECLS