Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: server/profilers.py

Issue 1595019: Merge remote branch 'origin/upstream' into tempbranch (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « frontend/tko/models.py ('k') | server/samples/profilertest.srv » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « frontend/tko/models.py ('k') | server/samples/profilertest.srv » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698