Tor
0.4.9.2-alpha-dev
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
b
c
d
f
g
h
l
m
n
o
p
r
s
v
Enumerations
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
g
h
i
m
n
o
p
q
r
s
t
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
lib
metrics
metrics_store.h
Go to the documentation of this file.
1
/* Copyright (c) 2020-2021, The Tor Project, Inc. */
2
/* See LICENSE for licensing information */
3
4
/**
5
* @file metrics_store.h
6
* @brief Header for lib/metrics/metrics_store.c
7
**/
8
9
#ifndef TOR_LIB_METRICS_METRICS_STORE_H
10
#define TOR_LIB_METRICS_METRICS_STORE_H
11
12
#include "
lib/buf/buffers.h
"
13
#include "
lib/container/smartlist.h
"
14
15
#include "
lib/metrics/metrics_common.h
"
16
#include "
lib/metrics/metrics_store_entry.h
"
17
18
/* Stub. */
19
typedef
struct
metrics_store_t
metrics_store_t
;
20
21
/* Allocators. */
22
void
metrics_store_free_
(
metrics_store_t
*store);
23
#define metrics_store_free(store) \
24
FREE_AND_NULL(metrics_store_t, metrics_store_free_, (store))
25
metrics_store_t
*
metrics_store_new
(
void
);
26
27
/* Modifiers. */
28
metrics_store_entry_t *
metrics_store_add
(
metrics_store_t
*store,
29
metrics_type_t
type,
const
char
*
name
,
30
const
char
*help,
size_t
bucket_count,
31
const
int64_t *buckets);
32
33
void
metrics_store_reset
(
metrics_store_t
*store);
34
35
/* Accessors. */
36
smartlist_t
*
metrics_store_get_all
(
const
metrics_store_t
*store,
37
const
char
*
name
);
38
void
metrics_store_get_output
(
const
metrics_format_t
fmt,
39
const
metrics_store_t
*store, buf_t *data);
40
41
#ifdef METRICS_METRICS_STORE_PRIVATE
42
43
#endif
/* METRICS_METRICS_STORE_PRIVATE. */
44
45
#endif
/* !defined(TOR_LIB_METRICS_METRICS_STORE_H) */
buffers.h
Header file for buffers.c.
name
const char * name
Definition:
config.c:2471
metrics_common.h
Header for lib/metrics/metrics_common.c.
metrics_type_t
metrics_type_t
Definition:
metrics_common.h:27
metrics_format_t
metrics_format_t
Definition:
metrics_common.h:21
metrics_store_free_
void metrics_store_free_(metrics_store_t *store)
Definition:
metrics_store.c:85
metrics_store_new
metrics_store_t * metrics_store_new(void)
Definition:
metrics_store.c:74
metrics_store_get_output
void metrics_store_get_output(const metrics_format_t fmt, const metrics_store_t *store, buf_t *data)
Definition:
metrics_store.c:134
metrics_store_get_all
smartlist_t * metrics_store_get_all(const metrics_store_t *store, const char *name)
Definition:
metrics_store.c:98
metrics_store_add
metrics_store_entry_t * metrics_store_add(metrics_store_t *store, metrics_type_t type, const char *name, const char *help, size_t bucket_count, const int64_t *buckets)
Definition:
metrics_store.c:109
metrics_store_reset
void metrics_store_reset(metrics_store_t *store)
Definition:
metrics_store.c:152
metrics_store_entry.h
Header for lib/metrics/metrics_store_entry.c.
smartlist.h
Header for smartlist.c.
metrics_store_t
Definition:
metrics_store.c:25
smartlist_t
Definition:
smartlist_core.h:26
Generated by
1.9.4