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

Unified Diff: scripts/master/factory/chromium_commands.py

Issue 10834044: Script to archive profiling data collected from (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/build/
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | scripts/slave/chromium/archive_profiling_data.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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',
« no previous file with comments | « no previous file | scripts/slave/chromium/archive_profiling_data.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698