Module ImportFrom alias alias alias alias alias alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Num Num Num Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad Dict Str Str Dict Str Str NameLoad Dict Str Str Dict Str Str Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad Dict Str Str Str Str Dict Str Str NameLoad Num Num Dict Str Str Str Str Dict Str Str NameLoad Num Num Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad Dict Str Str Dict Str Str Dict Str Str Dict Str Str Dict Str Str Dict Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad Dict Str Str Str Dict Str Str Dict Str NameLoad Num Dict Str Str Str Dict Str Str Dict Str NameLoad Num Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Dict Str Str Str Dict Str Str Dict Str Str Num Dict Str Str Str Dict Str Str Dict Str Str Num Assign NameStore Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Dict Str Str Str Dict Str Str Dict Str Str Num Dict Str Str Str Dict Str Str Dict Str Str Num Dict Str Str Str Dict Str Str Dict Str Str Num Dict Str Str Str Dict Str Str Dict Str Str Num Assign NameStore Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Dict Str Dict Str Str Str Str Dict Str Dict Str Str Str Str Str Dict Assign NameStore Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Dict Str Dict Str Str Str Str Str Dict Str Str Str Dict Str Str Str Str Str Num Num Num Num Num Num Num Dict Str Dict Str Str Str Str Str Dict Str Str Str Dict Str Str Str Str Str Num Num Num Num Num Num Num Assign NameStore Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Assign NameStore Dict Str Dict Str Str Dict Str NameLoad Num Num Dict Str Str NameLoad Num Num Num Assign NameStore ListLoad Dict Str Str Str Str Num Num Dict Str Str Str Str Num Num Dict Str Str Str Str Num Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Assign NameStore Dict Str Num Assign NameStore ListLoad Dict Str Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A benchmark.metrics_parser mean container_convergence cpu_usage_for_process wallclock_for_operation request_latency handle_cputime_metric handle_wallclock_metric flocker.testtools TestCase MetricsParserTests N/A TestCase N/A N/A 
    Tests for the metrics parsing script.
     test_mean_returns_floating_point_number N/A N/A self N/A N/A N/A values N/A 1 2 3 4 N/A mean_result N/A mean values N/A N/A N/A self assertIsInstance mean_result float N/A test_mean_returns_none_for_no_values N/A N/A self N/A N/A N/A values N/A N/A N/A N/A self assertEqual N/A mean values None N/A test_mean_correctly_calculates_mean N/A N/A self N/A N/A N/A values N/A 1 2 3 4 5 6 N/A N/A N/A self assertEqual N/A mean values 3.5 N/A test_cpu_usage_for_process_no_matching_results N/A N/A self N/A N/A N/A 
        cputime_for_process only considers results which have the
        'cputime' metric type and match the specified process name.
        None is returned if no results match.
         N/A process_name test-process N/A results N/A N/A metric process N/A type wallclock process_name N/A metric process N/A type cputime another-process N/A cputime_result N/A cpu_usage_for_process results process_name N/A N/A N/A self assertEqual cputime_result None N/A test_cpu_usage_for_process_calculates_result N/A N/A self N/A N/A N/A 
        cputime_for_process correctly calculates the CPU percentage for
        a process by dividing the total cputime by the total wallclock
        time across all the samples.
         N/A process_name test-process N/A results N/A N/A metric process value wallclock N/A type cputime process_name 10 60 N/A metric process value wallclock N/A type cputime process_name 30 100 N/A cputime_result N/A cpu_usage_for_process results process_name N/A N/A N/A self assertEqual cputime_result 0.25 N/A test_wallclock_for_operation_no_matching_results N/A N/A self N/A N/A N/A 
        wallclock_for_operation only considers results which have the
        'wallclock' metrics and match the specified operation name.
        None is returned if no results match.
         N/A operation_name test-operation N/A results N/A N/A metric operation N/A type wallclock N/A type another-operation N/A metric operation N/A type cputime N/A type operation_name N/A wallclock_result N/A wallclock_for_operation results operation_name N/A N/A N/A self assertEqual wallclock_result None N/A test_wallclock_for_operation_calculates_result N/A N/A self N/A N/A N/A 
        wallclock_for_process returns the mean of the values from
        samples which have the 'wallclock' metric type and match the
        specified operation.
         N/A operation test-operation N/A results N/A N/A metric operation value N/A type wallclock N/A type operation 11 N/A metric operation value N/A type wallclock N/A type operation 14 N/A wallclock_result N/A wallclock_for_operation results operation N/A N/A N/A self assertEqual wallclock_result 12.5 N/A test_container_convergence_no_matching_results N/A N/A self N/A N/A N/A 
        container_convergence only considers results which have the
        'wallclock' metric and are for the 'create-container' operation.
        None is returned if no results match.
         N/A results N/A N/A metric operation value N/A type cputime N/A type create-container 4 N/A metric operation value N/A type wallclock N/A type read-request 10 N/A convergence_results N/A container_convergence results 10 N/A N/A N/A self assertEqual convergence_results None N/A test_container_convergence_calculates_result N/A N/A self N/A N/A N/A 
        container_convergence returns the percentage of
        'create-container' operations that completed within the
        specified time limit.
         N/A results N/A N/A metric operation value N/A type wallclock N/A type create-container 4 N/A metric operation value N/A type wallclock N/A type create-container 2 N/A metric operation value N/A type wallclock N/A type create-container 5 N/A metric operation value N/A type wallclock N/A type create-container 9 N/A convergence_results N/A container_convergence results 5 N/A N/A N/A self assertEqual convergence_results 0.75 N/A test_request_latency_no_matching_results N/A N/A self N/A N/A N/A 
        request_latency only considers results which have the
        'scenario.metrics.call_durations' property.
        None is returned if no results match.
         N/A results N/A N/A scenario N/A name type test-scenario test-scenario-type N/A scenario N/A name type metrics test-scenario test-scenario-type N/A N/A latency_result N/A request_latency results 10 N/A N/A N/A self assertEqual latency_result None N/A test_request_latency_calculates_result N/A N/A self N/A N/A N/A 
        request_latency correctly calculates the percentage of scenario
        requests that complete within the specified time limit.
         N/A results N/A N/A scenario N/A name type metrics test-scenario test-scenario-type N/A call_durations ok_count err_count N/A 1.0 0.8 0.9 1.1 0.7 10 10 10 10 10 50 0 N/A scenario N/A name type metrics test-scenario test-scenario-type N/A call_durations ok_count err_count N/A 1.0 0.8 0.9 1.1 0.7 10 10 10 10 10 40 10 N/A latency_result N/A request_latency results 1 N/A N/A N/A self assertEqual latency_result 0.8 N/A test_handle_cputime_metric_creates_multiple_samples N/A N/A self N/A N/A N/A 
        handle_cputime_metric creates multiple sample objects, each with
        one value, from a single sample containing many values. It does
        not create a sample object from the '-- WALL --' key but adds
        this value to every other sample.
         N/A wallclock_key -- WALL -- N/A common_props N/A version scenario 1.10.1 default N/A sample N/A value N/A 10.0.0.1 10.0.0.2 N/A process1 wallclock_key 3 102.123 N/A process1 process2 wallclock_key 2 5 124.462 N/A expected_samples N/A N/A process value wallclock process1 3 102.123 N/A process value wallclock process1 2 124.462 N/A process value wallclock process2 5 124.462 N/A s expected_samples N/A N/A N/A N/A s update common_props N/A samples N/A handle_cputime_metric common_props sample N/A N/A N/A self assertEqual samples expected_samples N/A test_handle_wallclock_metrics_creates_sample N/A N/A self N/A N/A N/A 
        handle_wallclock_metric returns a list containing a single
        sample object with the value from the original sample.
         N/A common_props N/A version scenario 1.10.1 default N/A sample N/A value 12 N/A expected_samples N/A N/A value 12 N/A s expected_samples N/A N/A N/A N/A s update common_props N/A samples N/A handle_wallclock_metric common_props sample N/A N/A N/A self assertEqual samples expected_samples N/A N/A