import os
from anadroid.profiler.AbstractProfiler import AbstractProfiler
from anadroid.utils.Utils import execute_shell_command, get_resources_dir
[docs]class NoneProfiler(AbstractProfiler):
"""Mock Profiler interaction."""
def __init__(self, profiler, device, power_profile=None, timezone=None, hunter=True):
super(NoneProfiler, self).__init__(profiler, device, pkg_name=None)
[docs] def install_profiler(self):
pass
[docs] def init(self, **kwargs):
pass
[docs] def start_profiling(self, tag=""):
pass
[docs] def stop_profiling(self, tag="", export=False):
pass
[docs] def update_state(self, val=0, desc="stopped"):
pass
[docs] def export_results(self, out_filename=None):
pass
[docs] def pull_results(self, file_id, target_dir):
pass
[docs] def get_dependencies_location(self):
return []
[docs] def needs_external_dependencies(self):
return False