diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2011-10-07 02:39:48 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-10-21 11:21:42 -0400 |
commit | 03c06b629fc604030393567ec05c16f813d43529 (patch) | |
tree | a53474e347e5fa26ae5d14d2822be1869aaceeb3 /src/or/rephist.h | |
parent | af02c4a9c3ee0ab85a4ecf5c7ff16e2da901c886 (diff) | |
download | tor-03c06b629fc604030393567ec05c16f813d43529.tar.gz tor-03c06b629fc604030393567ec05c16f813d43529.zip |
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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/rephist.h b/src/or/rephist.h index e590659441..0a3e46ae1a 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); |