Index: scripts/master/factory/chromium_commands.py |
=================================================================== |
--- scripts/master/factory/chromium_commands.py (revision 147800) |
+++ scripts/master/factory/chromium_commands.py (working copy) |
@@ -63,6 +63,7 @@ |
self._gpu_archive_tool = J(s_dir, 'archive_gpu_pixel_test_results.py') |
self._crash_dump_tool = J(s_dir, 'archive_crash_dumps.py') |
self._dom_perf_tool = J(s_dir, 'dom_perf.py') |
+ self._profiling_archive_tool = J(s_dir, 'archive_profiling_data.py') |
self._asan_archive_tool = J(s_dir, 'asan_archive_build.py') |
self._archive_tool = J(s_dir, 'archive_build.py') |
self._sizes_tool = J(s_dir, 'sizes.py') |
@@ -305,6 +306,22 @@ |
self.AddTestStep(c, 'startup_test', cmd, |
do_step_if=self.TestStepFilter) |
+ # Profiling data is in /b/build/slave/SLAVE_NAME/build/src/chrome/test/data |
+ profiling_data_dir = self.PathJoin('src', 'chrome', 'test', 'data') |
+ |
+ # Setup environment for running gsutil, a Google Storage utility. |
+ gsutil = 'gsutil' |
+ if self._target_platform.startswith('win'): |
+ gsutil = 'gsutil.bat' |
+ env = {} |
+ env['GSUTIL'] = self.PathJoin(self._script_dir, gsutil) |
+ |
+ cmd = [self._python, |
+ self._gpu_archive_tool, |
+ '--run-id', WithProperties('%(got_revision)s_%(buildername)s'), |
+ '--profiling-data-dir', profiling_data_dir] |
+ self.AddTestStep(shell.ShellCommand, 'archive profiling data', cmd, env=env) |
cmp
2012/07/30 17:48:38
i think instead of in this file, your change shoul
|
+ |
def AddMemoryTests(self, factory_properties=None): |
factory_properties = factory_properties or {} |
c = self.GetPerfStepClass(factory_properties, 'memory', |