aboutsummaryrefslogtreecommitdiff
path: root/src/or/rephist.h
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2011-10-07 02:39:48 +0200
committerNick Mathewson <nickm@torproject.org>2011-10-21 11:21:42 -0400
commit03c06b629fc604030393567ec05c16f813d43529 (patch)
treea53474e347e5fa26ae5d14d2822be1869aaceeb3 /src/or/rephist.h
parentaf02c4a9c3ee0ab85a4ecf5c7ff16e2da901c886 (diff)
downloadtor-03c06b629fc604030393567ec05c16f813d43529.tar
tor-03c06b629fc604030393567ec05c16f813d43529.tar.gz
Add new stats type: descriptor fetch stats
This is used for the bridge authority currently, to get a better intuition on how many descriptors are actually fetched from it and how many fetches happen in total. Implements ticket 4200.
Diffstat (limited to 'src/or/rephist.h')
-rw-r--r--src/or/rephist.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/rephist.h b/src/or/rephist.h
index e59065944..0a3e46ae1 100644
--- a/src/or/rephist.h
+++ b/src/or/rephist.h
@@ -82,6 +82,11 @@ void rep_hist_add_buffer_stats(double mean_num_cells_in_queue,
char *rep_hist_format_buffer_stats(time_t now);
void rep_hist_reset_buffer_stats(time_t now);
+void rep_hist_desc_stats_init(time_t now);
+void rep_hist_note_desc_served(const char * desc);
+void rep_hist_desc_stats_term(void);
+time_t rep_hist_desc_stats_write(time_t now);
+
void rep_hist_conn_stats_init(time_t now);
void rep_hist_note_or_conn_bytes(uint64_t conn_id, size_t num_read,
size_t num_written, time_t when);