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

Side by Side Diff: tools/perf/profile_creators/extensions_profile_creator.py

Issue 1005203002: Telemetry: Move ProfileCreator to tools/perf/profile_creator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « tools/perf/generate_profile ('k') | tools/perf/profile_creators/large_profile_creator.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import json 5 import json
6 import logging 6 import logging
7 import os 7 import os
8 import platform 8 import platform
9 import shutil 9 import shutil
10 import socket 10 import socket
11 import sys 11 import sys
12 import tempfile 12 import tempfile
13 import time 13 import time
14 import urllib2 14 import urllib2
15 import zipfile 15 import zipfile
16 16
17 from telemetry.page import profile_creator
18 17
19 import page_sets 18 import page_sets
20 19
20 from profile_creators import profile_creator
21 from telemetry import benchmark 21 from telemetry import benchmark
22 from telemetry.page import page_test 22 from telemetry.page import page_test
23 from telemetry.page import test_expectations 23 from telemetry.page import test_expectations
24 from telemetry.results import results_options 24 from telemetry.results import results_options
25 from telemetry.user_story import user_story_runner 25 from telemetry.user_story import user_story_runner
26 26
27 class _ExtensionPageTest(page_test.PageTest): 27 class _ExtensionPageTest(page_test.PageTest):
28 """This page test verified that extensions were automatically installed.""" 28 """This page test verified that extensions were automatically installed."""
29 def __init__(self): 29 def __init__(self):
30 super(_ExtensionPageTest, self).__init__() 30 super(_ExtensionPageTest, self).__init__()
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 logging.info("Cleaning up stray files") 238 logging.info("Cleaning up stray files")
239 for filename in self._files_to_cleanup: 239 for filename in self._files_to_cleanup:
240 os.remove(filename) 240 os.remove(filename)
241 241
242 if self._extension_download_dir: 242 if self._extension_download_dir:
243 # Simple sanity check to lessen the impact of a stray rmtree(). 243 # Simple sanity check to lessen the impact of a stray rmtree().
244 if len(self._extension_download_dir.split(os.sep)) < 3: 244 if len(self._extension_download_dir.split(os.sep)) < 3:
245 raise Exception("Path too shallow: %s" % self._extension_download_dir) 245 raise Exception("Path too shallow: %s" % self._extension_download_dir)
246 shutil.rmtree(self._extension_download_dir) 246 shutil.rmtree(self._extension_download_dir)
247 self._extension_download_dir = None 247 self._extension_download_dir = None
OLDNEW
« no previous file with comments | « tools/perf/generate_profile ('k') | tools/perf/profile_creators/large_profile_creator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698