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

Side by Side Diff: tools/perf/profile_creators/small_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
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 from telemetry.page import profile_creator 5 from profile_creators import profile_creator
6 6
7 import logging 7 import logging
8 import page_sets 8 import page_sets
9 9
10 from telemetry import benchmark 10 from telemetry import benchmark
11 from telemetry.page import page_test 11 from telemetry.page import page_test
12 from telemetry.page import test_expectations 12 from telemetry.page import test_expectations
13 from telemetry.results import results_options 13 from telemetry.results import results_options
14 from telemetry.user_story import user_story_runner 14 from telemetry.user_story import user_story_runner
15 15
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 benchmark.BenchmarkMetadata(profile_creator.__class__.__name__), 62 benchmark.BenchmarkMetadata(profile_creator.__class__.__name__),
63 options) 63 options)
64 user_story_runner.Run(self._page_test, self._page_test._page_set, 64 user_story_runner.Run(self._page_test, self._page_test._page_set,
65 expectations, options, results) 65 expectations, options, results)
66 66
67 if results.failures: 67 if results.failures:
68 logging.warning('Some pages failed to load.') 68 logging.warning('Some pages failed to load.')
69 logging.warning('Failed pages:\n%s', 69 logging.warning('Failed pages:\n%s',
70 '\n'.join(map(str, results.pages_that_failed))) 70 '\n'.join(map(str, results.pages_that_failed)))
71 raise Exception('SmallProfileCreator failed.') 71 raise Exception('SmallProfileCreator failed.')
OLDNEW
« no previous file with comments | « tools/perf/profile_creators/profile_generator_unittest.py ('k') | tools/telemetry/telemetry/page/profile_creator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698