Module Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Num Num Num NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Num Num Num Num Num Num Num Num Num Num Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Num Num Num NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Num Num Num NameLoad Assign NameStore Num For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Num If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num If CompareLt NameLoad Num body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Num Num Num NameLoad Assign NameStore Num For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num If BoolOpOr CompareGt NameLoad Num CompareLt NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num If CompareLt NameLoad Num body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Num Num Num Num Num Num Num Num Num Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Num Num Num Num Num Num Num Num Num Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Num Num Num Num Num Num Num Num Num Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Num Num Num Num Num Num Num Num Num Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Print TupleLoad Str Call AttributeLoad NameLoad attr Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num If CompareLt Call AttributeLoad NameLoad attr Num Num body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num If CompareLt Call AttributeLoad NameLoad attr Num Num body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults vararg body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Num Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Num Num Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Num Num Num Num Num Num Num Num Num Num Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Num Num Num NameLoad Assign NameStore Num For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num Num Assert CompareEq Call AttributeLoad NameLoad attr Num decorator_list
N/A N/A pytest utils MockedTime sample_data sample_data_holder_1 sample_data_holder_2 hystrix.rolling_percentile RollingPercentile PercentileSnapshot test_rolling N/A N/A N/A N/A N/A time N/A MockedTime N/A percentile N/A RollingPercentile time 60000 12 1000 True N/A N/A N/A percentile add_value 1000 N/A N/A N/A percentile add_value 1000 N/A N/A N/A percentile add_value 1000 N/A N/A N/A percentile add_value 2000 N/A N/A N/A N/A percentile buckets size 1 N/A N/A N/A N/A percentile percentile 50 0 N/A N/A N/A time increment 6000 N/A N/A N/A N/A percentile buckets size 1 N/A N/A N/A N/A percentile percentile 50 1000 N/A N/A N/A N/A percentile buckets size 2 N/A N/A N/A percentile add_value 1000 N/A N/A N/A percentile add_value 500 N/A N/A N/A N/A percentile buckets size 2 N/A N/A N/A percentile add_value 200 N/A N/A N/A percentile add_value 200 N/A N/A N/A percentile add_value 1600 N/A N/A N/A percentile add_value 200 N/A N/A N/A percentile add_value 1600 N/A N/A N/A percentile add_value 1600 N/A N/A N/A N/A percentile percentile 50 1000 N/A N/A N/A time increment 6000 N/A snapshot N/A PercentileSnapshot 1000 1000 1000 2000 1000 500 200 200 1600 200 1600 1600 N/A N/A N/A N/A snapshot percentile 0.15 N/A N/A percentile percentile 0.15 N/A N/A N/A N/A snapshot percentile 0.5 N/A N/A percentile percentile 0.5 N/A N/A N/A N/A snapshot percentile 0.9 N/A N/A percentile percentile 0.9 N/A N/A N/A N/A snapshot percentile 0.995 N/A N/A percentile percentile 0.995 N/A N/A N/A N/A snapshot mean 991 N/A test_value_is_zero_after_rolling_window_passes_and_no_traffic N/A N/A N/A N/A N/A time N/A MockedTime N/A percentile N/A RollingPercentile time 60000 12 1000 True N/A N/A N/A percentile add_value 1000 N/A N/A N/A percentile add_value 1000 N/A N/A N/A percentile add_value 1000 N/A N/A N/A percentile add_value 2000 N/A N/A N/A percentile add_value 4000 N/A N/A N/A N/A percentile buckets size 1 N/A N/A N/A N/A percentile percentile 50 0 N/A N/A N/A time increment 6000 N/A N/A N/A N/A percentile buckets size 1 N/A N/A N/A N/A percentile percentile 50 1500 N/A N/A N/A time increment 60000 N/A N/A N/A N/A percentile percentile 50 0 N/A test_sample_data_over_time_1 N/A N/A N/A N/A N/A time N/A MockedTime N/A percentile N/A RollingPercentile time 60000 12 1000 True N/A previous_time 0 N/A N/A time_millis latency sample_data_holder_1 N/A N/A N/A N/A time increment N/A time_millis previous_time N/A previous_time time_millis N/A N/A N/A percentile add_value latency N/A N/A 0.01 N/A N/A percentile percentile 0.01 N/A N/A Median N/A N/A percentile percentile 50 N/A N/A 90th N/A N/A percentile percentile 90 N/A N/A 99th N/A N/A percentile percentile 99 N/A N/A 99.5th N/A N/A percentile percentile 99.5 N/A N/A 99.99 N/A N/A percentile percentile 99.99 N/A N/A Median N/A N/A percentile percentile 50 N/A N/A Median N/A N/A percentile percentile 50 N/A N/A Median N/A N/A percentile percentile 50 N/A _ N/A range 10 N/A N/A percentile50 N/A N/A percentile percentile 50 N/A N/A percentile50 5 N/A N/A N/A N/A pytest fail N/A N/A We expect around 2 but got: {} format percentile50 N/A percentile995 N/A N/A percentile percentile 99.5 N/A N/A percentile995 20 N/A N/A msg We expect to see some high values over 20 but got: {} N/A N/A N/A pytest fail N/A N/A msg format percentile995 N/A test_sample_data_over_time_2 N/A N/A N/A N/A N/A time N/A MockedTime N/A percentile N/A RollingPercentile time 60000 12 1000 True N/A previous_time 0 N/A N/A time_millis latency sample_data_holder_2 N/A N/A N/A N/A time increment N/A time_millis previous_time N/A previous_time time_millis N/A N/A N/A percentile add_value latency N/A N/A 0.01 N/A N/A percentile percentile 0.01 N/A N/A Median N/A N/A percentile percentile 50 N/A N/A 90th N/A N/A percentile percentile 90 N/A N/A 99th N/A N/A percentile percentile 99 N/A N/A 99.5th N/A N/A percentile percentile 99.5 N/A N/A 99.99 N/A N/A percentile percentile 99.99 N/A percentile50 N/A N/A percentile percentile 50 N/A N/A N/A percentile50 90 N/A percentile50 50 N/A N/A N/A N/A pytest fail N/A N/A We expect around 60-70 but got: {} format percentile50 N/A percentile99 N/A N/A percentile percentile 99 N/A N/A percentile99 400 N/A N/A msg We expect to see some high values over 400 but got: {} N/A N/A N/A pytest fail N/A N/A msg format percentile99 N/A test_percentile_algorithm_media1 N/A N/A N/A N/A N/A snapshot N/A PercentileSnapshot 100 100 100 100 200 200 200 300 300 300 300 N/A N/A N/A N/A snapshot percentile 50 200 N/A test_percentile_algorithm_media2 N/A N/A N/A N/A N/A snapshot N/A PercentileSnapshot 100 100 100 100 100 100 100 100 100 100 500 N/A N/A N/A N/A snapshot percentile 50 100 N/A test_percentile_algorithm_media3 N/A N/A N/A N/A N/A snapshot N/A PercentileSnapshot 50 75 100 125 160 170 180 200 210 300 500 N/A N/A N/A N/A snapshot percentile 50 175 N/A test_percentile_algorithm_media4 N/A N/A N/A N/A N/A  Unsorted so it is expected to sort it for us.  N/A snapshot N/A PercentileSnapshot 300 75 125 500 100 160 180 200 210 50 170 N/A N/A N/A N/A snapshot percentile 50 175 N/A test_percentile_algorithm_extremes N/A N/A N/A N/A N/A  Unsorted so it is expected to sort it for us.  N/A snapshot N/A PercentileSnapshot 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 800 768 657 700 867 N/A N/A 0.01 N/A N/A snapshot percentile 0.01 N/A N/A 10th N/A N/A snapshot percentile 10 N/A N/A Median N/A N/A snapshot percentile 50 N/A N/A 75th N/A N/A snapshot percentile 75 N/A N/A 90th N/A N/A snapshot percentile 90 N/A N/A 99th N/A N/A snapshot percentile 99 N/A N/A 99.5th N/A N/A snapshot percentile 99.5 N/A N/A 99.99 N/A N/A snapshot percentile 99.99 N/A N/A N/A N/A snapshot percentile 50 2 N/A N/A N/A N/A snapshot percentile 10 2 N/A N/A N/A N/A snapshot percentile 75 2 N/A N/A N/A N/A snapshot percentile 95 600 N/A N/A msg We expect 90th to be over 600 to show the extremes but got: {} N/A N/A N/A pytest fail N/A N/A msg format N/A N/A snapshot percentile 95 N/A N/A N/A N/A snapshot percentile 99 600 N/A N/A msg We expect 99th to be over 600 to show the extremes but got: {} N/A N/A N/A pytest fail N/A N/A msg format N/A N/A snapshot percentile 99 N/A percentile_for_values N/A N/A N/A values N/A N/A N/A PercentileSnapshot values N/A test_percentile_algorithm_high_percentile N/A N/A N/A N/A N/A snapshot N/A percentile_for_values 1 2 3 N/A N/A N/A N/A snapshot percentile 50 2 N/A N/A N/A N/A snapshot percentile 75 3 N/A test_percentile_algorithm_low_percentile N/A N/A N/A N/A N/A snapshot N/A percentile_for_values 1 2 N/A N/A N/A N/A snapshot percentile 25 1 N/A N/A N/A N/A snapshot percentile 75 2 N/A test_percentile_algorithm_percentiles N/A N/A N/A N/A N/A snapshot N/A percentile_for_values 10 30 20 40 N/A N/A N/A N/A snapshot percentile 30 22 N/A N/A N/A N/A snapshot percentile 25 20 N/A N/A N/A N/A snapshot percentile 75 40 N/A N/A N/A N/A snapshot percentile 50 30 N/A N/A N/A N/A snapshot percentile -1 10 N/A N/A N/A N/A snapshot percentile 101 40 N/A test_percentile_algorithm_NIST_example N/A N/A N/A N/A N/A snapshot N/A percentile_for_values 951772 951567 951937 951959 951442 950610 951591 951195 951772 950925 951990 951682 N/A N/A N/A N/A snapshot percentile 90 951983 N/A N/A N/A N/A snapshot percentile 100 951990 N/A test_does_nothing_when_disabled N/A N/A N/A N/A N/A time N/A MockedTime N/A percentile N/A RollingPercentile time 60000 12 1000 False N/A previous_time 0 N/A N/A time_millis latency sample_data_holder_2 N/A N/A N/A N/A time increment N/A time_millis previous_time N/A previous_time time_millis N/A N/A N/A percentile add_value latency N/A N/A N/A N/A percentile percentile 50 -1 N/A N/A N/A N/A percentile percentile 75 -1 N/A N/A N/A N/A percentile mean -1 N/A