summaryrefslogtreecommitdiff
path: root/src/feature/stats/rephist.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2022-10-13 10:32:16 -0400
committerDavid Goulet <dgoulet@torproject.org>2022-10-26 15:16:48 -0400
commit98b98fd3ce767d9fd303908337fdae0a4d558d67 (patch)
tree882c6794371809dfe798fb15c96b9e1ea8c57717 /src/feature/stats/rephist.h
parent609a82a595db45603edc1d007a6657fe4c1b4f5f (diff)
downloadtor-98b98fd3ce767d9fd303908337fdae0a4d558d67.tar.gz
tor-98b98fd3ce767d9fd303908337fdae0a4d558d67.zip
rephist: Track number of streams seen per type
Related to #40194 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/stats/rephist.h')
-rw-r--r--src/feature/stats/rephist.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/feature/stats/rephist.h b/src/feature/stats/rephist.h
index 2a83dd185e..c1352ae7f8 100644
--- a/src/feature/stats/rephist.h
+++ b/src/feature/stats/rephist.h
@@ -48,6 +48,9 @@ uint64_t rep_hist_get_conn_created(bool initiated, unsigned int type);
uint64_t rep_hist_get_conn_opened(bool initiated, unsigned int type);
uint64_t rep_hist_get_conn_rejected(unsigned int type);
+void rep_hist_note_stream(unsigned int cmd);
+uint64_t rep_hist_get_stream_seen(unsigned int cmd);
+
void rep_hist_buffer_stats_init(time_t now);
void rep_hist_buffer_stats_add_circ(circuit_t *circ,
time_t end_of_interval);