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

Side by Side Diff: tools/telemetry/telemetry/page/page_filter.py

Issue 12278015: [Telemetry] Reorganize everything. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-add shebangs. Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 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 import optparse 4 import optparse
5 import re 5 import re
6 6
7 class PageFilter(object): 7 class PageFilter(object):
8 """Filters pages in the page set based on command line flags.""" 8 """Filters pages in the page set based on command line flags."""
9 9
10 def __init__(self, options): 10 def __init__(self, options):
(...skipping 21 matching lines...) Expand all
32 return True 32 return True
33 33
34 @staticmethod 34 @staticmethod
35 def AddCommandLineOptions(parser): 35 def AddCommandLineOptions(parser):
36 group = optparse.OptionGroup(parser, 'Page filtering options') 36 group = optparse.OptionGroup(parser, 'Page filtering options')
37 group.add_option('--page-filter', dest='page_filter', 37 group.add_option('--page-filter', dest='page_filter',
38 help='Use only pages whose URLs match the given filter regexp.') 38 help='Use only pages whose URLs match the given filter regexp.')
39 group.add_option('--page-filter-exclude', dest='page_filter_exclude', 39 group.add_option('--page-filter-exclude', dest='page_filter_exclude',
40 help='Exclude pages whose URLs match the given filter regexp.') 40 help='Exclude pages whose URLs match the given filter regexp.')
41 parser.add_option_group(group) 41 parser.add_option_group(group)
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/page/page_benchmark_value.py ('k') | tools/telemetry/telemetry/page/page_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698