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

Issue 2293533002: Refactor NumericBuilder to HistogramBinBoundaries. (Closed)

Created:
4 years, 3 months ago by benjhayden
Modified:
4 years, 3 months ago
CC:
catapult-reviews_chromium.org, tracing-review_chromium.org
Base URL:
https://github.com/catapult-project/catapult.git@master
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Refactor NumericBuilder to HistogramBinBoundaries. HistogramBinBoundaries still allows metrics to use the builder pattern, but it's building only the bin boundaries, not the entire Histogram object. The Histogram constructor now takes a unit and an optional HistogramBinBoundaries object. Soon, Histogram will subsume name from Value, but that's it. 2 or 3 arguments is not enough to warrant applying the builder pattern to Histogram construction. HistogramBinBoundaries *are* complex enough to warrant the builder pattern, but they are separate from the larger Histogram concept. Metrics are all changed to say |new Histogram(unit, boundaries)|. cpu_process_metric was incorrectly producing percentages between 0 and 100, and was changed to 0 to 1. BUG=catapult:#2685 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/17bda7618b6d6dd0814e494d762f20e85bc3fed0

Patch Set 1 #

Patch Set 2 : HistogramBinBoundaries #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+383 lines, -471 lines) Patch
M trace_processor/experimental/mappers/task_info_map_function.html View 1 2 chunks +4 lines, -4 lines 0 comments Download
M trace_processor/experimental/mappers/trace_stats.html View 1 2 chunks +3 lines, -4 lines 0 comments Download
M tracing/tracing/metrics/blink/gc_metric.html View 1 2 3 4 3 chunks +7 lines, -11 lines 0 comments Download
M tracing/tracing/metrics/cpu_process_metric.html View 1 2 chunks +3 lines, -7 lines 0 comments Download
M tracing/tracing/metrics/cpu_process_metric_test.html View 1 2 chunks +4 lines, -4 lines 0 comments Download
M tracing/tracing/metrics/metric_registry_test.html View 1 3 chunks +9 lines, -12 lines 0 comments Download
M tracing/tracing/metrics/sample_metric.html View 1 1 chunk +1 line, -5 lines 0 comments Download
M tracing/tracing/metrics/system_health/clock_sync_latency_metric.html View 1 2 3 4 2 chunks +3 lines, -5 lines 0 comments Download
M tracing/tracing/metrics/system_health/hazard_metric.html View 1 2 chunks +2 lines, -5 lines 0 comments Download
M tracing/tracing/metrics/system_health/loading_metric.html View 1 2 3 4 1 chunk +7 lines, -6 lines 0 comments Download
M tracing/tracing/metrics/system_health/long_tasks_metric.html View 1 2 4 chunks +10 lines, -18 lines 0 comments Download
M tracing/tracing/metrics/system_health/memory_metric.html View 1 2 3 4 5 6 4 chunks +11 lines, -13 lines 0 comments Download
M tracing/tracing/metrics/system_health/power_metric.html View 1 1 chunk +3 lines, -2 lines 0 comments Download
M tracing/tracing/metrics/system_health/rail_power_metric.html View 1 2 chunks +8 lines, -17 lines 0 comments Download
M tracing/tracing/metrics/system_health/responsiveness_metric.html View 1 1 chunk +13 lines, -24 lines 0 comments Download
M tracing/tracing/metrics/system_health/webview_startup_metric.html View 1 1 chunk +8 lines, -8 lines 0 comments Download
M tracing/tracing/metrics/tracing_metric.html View 1 3 chunks +18 lines, -15 lines 0 comments Download
M tracing/tracing/metrics/v8/execution_metric.html View 1 7 chunks +41 lines, -23 lines 0 comments Download
M tracing/tracing/metrics/v8/gc_metric.html View 1 2 3 5 chunks +11 lines, -12 lines 0 comments Download
M tracing/tracing/value/diagnostics/composition.html View 1 2 chunks +6 lines, -5 lines 0 comments Download
M tracing/tracing/value/diagnostics/composition_test.html View 1 2 chunks +5 lines, -5 lines 0 comments Download
M tracing/tracing/value/histogram.html View 1 2 3 11 chunks +105 lines, -96 lines 0 comments Download
M tracing/tracing/value/histogram_test.html View 1 19 chunks +60 lines, -106 lines 0 comments Download
M tracing/tracing/value/numeric.html View 1 2 chunks +3 lines, -3 lines 0 comments Download
M tracing/tracing/value/ui/composition_span_test.html View 1 1 chunk +1 line, -5 lines 0 comments Download
M tracing/tracing/value/ui/histogram_span_test.html View 1 3 chunks +3 lines, -7 lines 0 comments Download
M tracing/tracing/value/ui/numeric_stats_span_test.html View 1 1 chunk +1 line, -5 lines 0 comments Download
M tracing/tracing/value/ui/related_value_map_span_test.html View 1 1 chunk +4 lines, -6 lines 0 comments Download
M tracing/tracing/value/ui/related_value_set_span_test.html View 1 1 chunk +4 lines, -6 lines 0 comments Download
M tracing/tracing/value/ui/scalar_span_test.html View 1 2 3 chunks +4 lines, -5 lines 0 comments Download
M tracing/tracing/value/ui/value_set_table_test.html View 1 7 chunks +14 lines, -9 lines 0 comments Download
M tracing/tracing/value/ui/value_set_view_test.html View 1 1 chunk +2 lines, -6 lines 0 comments Download
M tracing/tracing/value/value_set_test.html View 1 2 3 4 4 chunks +5 lines, -12 lines 0 comments Download

Messages

Total messages: 29 (16 generated)
benjhayden
PTAL :-)
4 years, 3 months ago (2016-08-29 16:11:10 UTC) #2
benjhayden
Hold review. I'll go ahead and make this CL do the HistogramBinBounds refactor that we ...
4 years, 3 months ago (2016-08-29 17:51:26 UTC) #5
benjhayden
OK, ready. PTAL :-)
4 years, 3 months ago (2016-08-30 00:19:36 UTC) #10
eakuefner
lgtm
4 years, 3 months ago (2016-08-30 18:04:51 UTC) #11
benjhayden
I'll move dots back to the next lines.
4 years, 3 months ago (2016-08-30 18:06:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2293533002/80001
4 years, 3 months ago (2016-08-30 18:22:36 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Presubmit on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Presubmit/builds/4094)
4 years, 3 months ago (2016-08-30 19:07:11 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2293533002/120001
4 years, 3 months ago (2016-08-30 20:59:19 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Presubmit on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Presubmit/builds/4102)
4 years, 3 months ago (2016-08-30 21:51:10 UTC) #22
benjhayden
oysteine: stamp for trace_processor ownership please? :-)
4 years, 3 months ago (2016-08-30 22:12:37 UTC) #24
oystein (OOO til 10th of July)
lgtm
4 years, 3 months ago (2016-08-30 22:29:13 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2293533002/120001
4 years, 3 months ago (2016-08-30 23:21:58 UTC) #27
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 23:27:23 UTC) #29
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698