anadroid.results_analysis package
Subpackages
Submodules
anadroid.results_analysis.AbstractAnalyzer module
- class anadroid.results_analysis.AbstractAnalyzer.AbstractAnalyzer(profiler, analyzers_cfg_file='/Users/ruirua/repos/pyAnaDroid/anadroid/resources/config/analyzer_filters.json')[source]
Bases:
ABC
Defines a basic interface to be implemented by programs aiming to analyze and produce results about the data collected during the profiling session and profiled apps. .. attribute:: profiler
profiler.
- type:
Profiler
- supported_filters
default set of filters to validate analyzed results.
- Type:
set
- validation_filters
additional set of filters provided via config file to validate analyzed results.
- Type:
set
- abstract analyze_test(app, test_id, **kwargs)[source]
Analyze test identified by test_id of a given app. :param app: app. :type app: App :param test_id: test uuid.
- abstract analyze_tests(app=None, results_dir=None, **kwargs)[source]
Analyze a set of tests of a given app. :param app: app. :type app: App :param results_dir: directory where to store results.
- abstract get_val_for_filter(filter_name, add_data=None)[source]
get correspondent value of a given filter :param filter_name: name of the filter.
- Returns:
filter value.
- Return type:
value
anadroid.results_analysis.ApkAPIAnalyzer module
- class anadroid.results_analysis.ApkAPIAnalyzer.ApkAPIAnalyzer(profiler)[source]
Bases:
AbstractAnalyzer
Defines a basic interface collect metrics of each method defined in an Android Project using Androguard.
- analyze_test(app, test_id, **kwargs)[source]
Analyze test identified by test_id of a given app. :param app: app. :type app: App :param test_id: test uuid.
- analyze_tests(app=None, results_dir=None, **kwargs)[source]
Analyze a set of tests of a given app. :param app: app. :type app: App :param results_dir: directory where to store results.
anadroid.results_analysis.ComposedAnalyzer module
- class anadroid.results_analysis.ComposedAnalyzer.ComposedAnalyzer(profiler, inner_analyzers=())[source]
Bases:
AbstractAnalyzer
Provides a way to abstract the usage of a set of AbstractAnalyzers through a single api call.
- analyze_test(test_id, **kwargs)[source]
Analyze test identified by test_id of a given app. :param app: app. :type app: App :param test_id: test uuid.
- analyze_tests(app=None, results_dir=None, **kwargs)[source]
Analyze a set of tests of a given app. :param app: app. :type app: App :param results_dir: directory where to store results.
anadroid.results_analysis.HunterAnalyzer module
anadroid.results_analysis.LogAnalyzer module
- class anadroid.results_analysis.LogAnalyzer.LogAnalyzer(profiler)[source]
Bases:
AbstractAnalyzer
Implements AbstractAnalyzer interface to allow analyze Android logs produced during profiling sessions using logcatparser. Calculate statistics about the produced logs to analyze and characterize test executions.
- analyze_test(app, log_file, output_filename=None, **kwargs)[source]
Analyze test identified by test_id of a given app. :param app: app. :type app: App :param test_id: test uuid.
- analyze_tests(app=None, results_dir=None, **kwargs)[source]
Analyze a set of tests of a given app. :param app: app. :type app: App :param results_dir: directory where to store results.
anadroid.results_analysis.ManafaAnalyzer module
- class anadroid.results_analysis.ManafaAnalyzer.ManafaAnalyzer(profiler)[source]
Bases:
AbstractAnalyzer
Implements AbstractAnalyzer interface to allow analyze profiled results with EManafa profiler. Calculate statistics about the produced results to analyze, validate and characterize executions.
- analyze_test(app, test_id, **kwargs)[source]
Analyze test identified by test_id of a given app. :param app: app. :type app: App :param test_id: test uuid.
- analyze_tests(app=None, results_dir=None, **kwargs)[source]
Analyze a set of tests of a given app. :param app: app. :type app: App :param results_dir: directory where to store results.
anadroid.results_analysis.OldAnaDroidAnalyzer module
- class anadroid.results_analysis.OldAnaDroidAnalyzer.OldAnaDroidAnalyzer(profiler, jarpath=None, remote_url=None)[source]
Bases:
AbstractAnalyzer
Implements AbstractAnalyzer interface to allow analyze profiled results with Trepn profiler. Calculate statistics about the produced results to analyze, validate and characterize executions.
- analyze_test(app, test_id, **kwargs)[source]
Analyze test identified by test_id of a given app. :param app: app. :type app: App :param test_id: test uuid.
- analyze_tests(app=None, results_dir=None, **kwargs)[source]
Analyze a set of tests of a given app. :param app: app. :type app: App :param results_dir: directory where to store results.
anadroid.results_analysis.SCCAnalyzer module
- class anadroid.results_analysis.SCCAnalyzer.SCCAnalyzer(profiler)[source]
Bases:
AbstractAnalyzer
Implements AbstractAnalyzer interface to allow to calculate app code results using scc tool.
- analyze_test(app, test_id, **kwargs)[source]
Analyze test identified by test_id of a given app. :param app: app. :type app: App :param test_id: test uuid.
- analyze_tests(app=None, results_dir=None, **kwargs)[source]
Analyze a set of tests of a given app. :param app: app. :type app: App :param results_dir: directory where to store results.