| OLD | NEW |
| 1 import os, shutil, tempfile, logging | 1 import os, shutil, tempfile, logging |
| 2 | 2 |
| 3 import common | 3 import common |
| 4 from autotest_lib.client.common_lib import utils, error, profiler_manager | 4 from autotest_lib.client.common_lib import utils, error, profiler_manager |
| 5 from autotest_lib.server import profiler, autotest, standalone_profiler, hosts | 5 from autotest_lib.server import profiler, autotest, standalone_profiler, hosts |
| 6 | 6 |
| 7 | 7 |
| 8 PROFILER_TMPDIR = '/tmp/profilers' | 8 PROFILER_TMPDIR = '/tmp/profilers' |
| 9 | 9 |
| 10 | 10 |
| 11 def get_profiler_results_dir(autodir): | 11 def get_profiler_results_dir(autodir): |
| 12 """ | 12 """ |
| 13 Given the directory of the autotest client used to run a profiler, | 13 Given the directory of the autotest client used to run a profiler, |
| 14 return the remote path where profiler results will be stored. | 14 return the remote path where profiler results will be stored. |
| 15 """ | 15 """ |
| 16 return os.path.join(autodir, 'results', 'default', 'barriertest', | 16 return os.path.join(autodir, 'results', 'default', 'profiler_sync', |
| 17 'profiling') | 17 'profiling') |
| 18 | 18 |
| 19 | 19 |
| 20 def get_profiler_log_path(autodir): | 20 def get_profiler_log_path(autodir): |
| 21 """ | 21 """ |
| 22 Given the directory of a profiler client, find the client log path. | 22 Given the directory of a profiler client, find the client log path. |
| 23 """ | 23 """ |
| 24 return os.path.join(autodir, 'results', 'default', 'debug', 'client.DEBUG') | 24 return os.path.join(autodir, 'results', 'default', 'debug', 'client.DEBUG') |
| 25 | 25 |
| 26 | 26 |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 for profiler in self.list: | 261 for profiler in self.list: |
| 262 if not profiler.supports_reboot: | 262 if not profiler.supports_reboot: |
| 263 msg = 'profiler %s does not support rebooting during tests' | 263 msg = 'profiler %s does not support rebooting during tests' |
| 264 msg %= profiler.name | 264 msg %= profiler.name |
| 265 self.job.record('WARN', os.path.basename(test.outputdir), | 265 self.job.record('WARN', os.path.basename(test.outputdir), |
| 266 None, msg) | 266 None, msg) |
| 267 | 267 |
| 268 self.report(test, host) | 268 self.report(test, host) |
| 269 self.before_start(test, host) | 269 self.before_start(test, host) |
| 270 self.start(test, host) | 270 self.start(test, host) |
| OLD | NEW |