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

Issue 99493004: Telemetry: Filter by label in addition to page URL. (Closed)

Created:
7 years ago by epenner
Modified:
7 years ago
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Telemetry: Filter by label in addition to page URL. This adds label filtering (in addition to existing URL filtering). Extracting different filter types from a single command-line-flag was either more complicated to parse or less expressive, so this adds new command-lines for these filters. BUG=324031 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239664

Patch Set 1 #

Patch Set 2 : Check attr on page. #

Patch Set 3 : Fix include labels. #

Total comments: 2

Patch Set 4 : Add test. #

Patch Set 5 : Adding unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -12 lines) Patch
M tools/telemetry/telemetry/core/browser_options.py View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/page/page_filter.py View 1 2 3 3 chunks +29 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/page/page_filter_unittest.py View 1 2 3 4 2 chunks +40 lines, -10 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
epenner
Ptal. Just whipped this up and wanted to make sure this is approx what you ...
7 years ago (2013-12-07 01:06:36 UTC) #1
epenner
It appears the JSON attrs are getting applied to the page indeed. Just tested this ...
7 years ago (2013-12-07 02:10:35 UTC) #2
nduca
can you think up a unit test for this? page_runner_unittest might have somethign you can ...
7 years ago (2013-12-09 19:41:46 UTC) #3
nduca
https://codereview.chromium.org/99493004/diff/40001/tools/telemetry/telemetry/page/page_filter.py File tools/telemetry/telemetry/page/page_filter.py (right): https://codereview.chromium.org/99493004/diff/40001/tools/telemetry/telemetry/page/page_filter.py#newcode66 tools/telemetry/telemetry/page/page_filter.py:66: group.add_option('--label-filter', dest='label_filter', can you do label -> page_label throughout? ...
7 years ago (2013-12-09 19:41:50 UTC) #4
nduca
lgtm assuming you can get a unittest etc
7 years ago (2013-12-09 19:42:07 UTC) #5
epennerAtGoogle
https://codereview.chromium.org/99493004/diff/40001/tools/telemetry/telemetry/page/page_filter.py File tools/telemetry/telemetry/page/page_filter.py (right): https://codereview.chromium.org/99493004/diff/40001/tools/telemetry/telemetry/page/page_filter.py#newcode66 tools/telemetry/telemetry/page/page_filter.py:66: group.add_option('--label-filter', dest='label_filter', On 2013/12/09 19:41:51, nduca wrote: > can ...
7 years ago (2013-12-09 20:14:02 UTC) #6
epenner
Tested both include/exclude code in page_filter_unittest One minor change is that I now check that ...
7 years ago (2013-12-10 02:14:06 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/epenner@chromium.org/99493004/80001
7 years ago (2013-12-10 02:14:54 UTC) #8
commit-bot: I haz the power
7 years ago (2013-12-10 05:16:23 UTC) #9
Message was sent while issue was closed.
Change committed as 239664

Powered by Google App Engine
This is Rietveld 408576698