Tor  0.4.5.0-alpha-dev
Data Fields
circuit_build_times_t Struct Reference

#include <circuitstats.h>

Data Fields

build_time_t circuit_build_times [CBT_NCIRCUITS_TO_OBSERVE]
 
int build_times_idx
 
int total_build_times
 
network_liveness_t liveness
 
time_t last_circ_at
 
build_time_t Xm
 
double alpha
 
int have_computed_timeout
 
double timeout_ms
 
double close_ms
 
uint32_t num_circ_succeeded
 
uint32_t num_circ_timeouts
 
uint32_t num_circ_closed
 

Detailed Description

Structure for circuit build times history

Definition at line 177 of file circuitstats.h.

Field Documentation

◆ alpha

double alpha

alpha exponent for pareto dist.

Definition at line 191 of file circuitstats.h.

Referenced by circuit_build_times_calculate_timeout().

◆ build_times_idx

int build_times_idx

Current index in the circuit_build_times circular array

Definition at line 181 of file circuitstats.h.

Referenced by circuit_build_times_reset().

◆ circuit_build_times

build_time_t circuit_build_times[CBT_NCIRCUITS_TO_OBSERVE]

◆ close_ms

double close_ms

◆ have_computed_timeout

int have_computed_timeout

Have we computed a timeout?

Definition at line 193 of file circuitstats.h.

Referenced by circuit_build_times_reset().

◆ last_circ_at

time_t last_circ_at

Last time we built a circuit. Used to decide to build new test circs

Definition at line 187 of file circuitstats.h.

Referenced by circuit_build_times_needs_circuits_now().

◆ liveness

◆ num_circ_closed

uint32_t num_circ_closed

Total closed counts. Old measurements may be scaled downward if we've seen a lot of circuits.

Definition at line 207 of file circuitstats.h.

Referenced by circuit_build_times_network_close(), circuit_build_times_reset(), and circuit_build_times_scale_circ_counts().

◆ num_circ_succeeded

uint32_t num_circ_succeeded

Total succeeded counts. Old measurements may be scaled downward if we've seen a lot of circuits.

Definition at line 201 of file circuitstats.h.

Referenced by circuit_build_times_network_circ_success(), circuit_build_times_reset(), and circuit_build_times_scale_circ_counts().

◆ num_circ_timeouts

uint32_t num_circ_timeouts

Total timeout counts. Old measurements may be scaled downward if we've seen a lot of circuits.

Definition at line 204 of file circuitstats.h.

Referenced by circuit_build_times_network_timeout(), circuit_build_times_reset(), and circuit_build_times_scale_circ_counts().

◆ timeout_ms

double timeout_ms

The exact value for that timeout in milliseconds. Stored as a double to maintain precision from calculations to and from quantile value.

Definition at line 196 of file circuitstats.h.

Referenced by circuit_build_times_count_close(), circuit_build_times_count_timeout(), circuit_build_times_network_check_changed(), circuit_build_times_set_timeout(), circuit_build_times_set_timeout_worker(), circuit_build_times_timeout_rate(), and get_circuit_build_timeout_ms().

◆ total_build_times

int total_build_times

◆ Xm

"Minimum" value of our pareto distribution (actually mode)

Definition at line 189 of file circuitstats.h.

Referenced by circuit_build_times_calculate_timeout(), and circuit_build_times_update_alpha().


The documentation for this struct was generated from the following file: