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

Issue 2334233003: Merge NumericValue into Histogram (Closed)

Created:
4 years, 3 months ago by benjhayden
Modified:
4 years, 3 months ago
CC:
catapult-reviews_chromium.org, tracing-review_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Merge NumericValue into Histogram. Pour one out for Value, y'all. The Value system was a really neat architecture. It made good sense. But when the TBM2 rubber hit the road, it turned out that the only Value subclass that was needed was NumericValue. And in order for merging NumericValues to be predictable, they need to specify reasonable ranges, and, well, be Histograms. The TBM2 UIs should handle the scalar statistics. If all metrics always produce NumericValues that contain Histograms, it's just more ergonomic if those are the same object. This aligns with UMA histograms, which have names and bin configurations and descriptions. I considered splitting Histogram into a base/ Histogram without name and diagnostics, and a MetricHistogram with them, but the only non-metric client of Histogram (multi_sample_sub_view) needs diagnostics (though not name). So let's keep a monolithic Histogram for now. We can split it if and when a fault-line emerges in the use-cases. This means that tracing/ui will depend on value/ (when lpy lands it), but that's already been the case since ScalarNumeric was moved to value/. This will invalidate existing results2.html again. A follow-up patch will move ScalarNumeric to base/ with the Unit system, and delete NumericBase. Another follow-up will rename ValueSet, value-set-table, sourceValues, etc. BUG=catapult:#2685 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/4d79e0661cd7df860765247ca5250f8dcb19735c

Patch Set 1 : . #

Total comments: 3

Patch Set 2 : comments #

Patch Set 3 : rebase #

Patch Set 4 : fix rail_power_metric #

Unified diffs Side-by-side diffs Delta from patch set Stats (+670 lines, -1039 lines) Patch
M trace_processor/experimental/mappers/test_mapper.html View 1 chunk +0 lines, -1 line 0 comments Download
M trace_processor/experimental/mappers/thread_grouping.html View 1 chunk +0 lines, -1 line 0 comments Download
M tracing/trace_viewer.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M tracing/tracing/metrics/blink/gc_metric.html View 8 chunks +20 lines, -24 lines 0 comments Download
M tracing/tracing/metrics/blink/gc_metric_test.html View 4 chunks +46 lines, -46 lines 0 comments Download
M tracing/tracing/metrics/cpu_process_metric.html View 4 chunks +4 lines, -6 lines 0 comments Download
M tracing/tracing/metrics/cpu_process_metric_test.html View 2 chunks +2 lines, -2 lines 0 comments Download
M tracing/tracing/metrics/metric_map_function.html View 1 chunk +1 line, -1 line 0 comments Download
M tracing/tracing/metrics/metric_registry_test.html View 2 chunks +12 lines, -13 lines 0 comments Download
M tracing/tracing/metrics/sample_metric.html View 2 chunks +3 lines, -3 lines 0 comments Download
M tracing/tracing/metrics/system_health/clock_sync_latency_metric.html View 2 chunks +3 lines, -5 lines 0 comments Download
M tracing/tracing/metrics/system_health/clock_sync_latency_metric_test.html View 1 chunk +2 lines, -2 lines 0 comments Download
M tracing/tracing/metrics/system_health/cpu_time_metric.html View 3 chunks +4 lines, -11 lines 0 comments Download
M tracing/tracing/metrics/system_health/cpu_time_metric_test.html View 1 chunk +1 line, -1 line 0 comments Download
M tracing/tracing/metrics/system_health/hazard_metric.html View 2 chunks +2 lines, -3 lines 0 comments Download
M tracing/tracing/metrics/system_health/hazard_metric_test.html View 4 chunks +5 lines, -8 lines 0 comments Download
M tracing/tracing/metrics/system_health/loading_metric.html View 1 2 6 chunks +14 lines, -15 lines 0 comments Download
M tracing/tracing/metrics/system_health/loading_metric_test.html View 1 2 5 chunks +16 lines, -15 lines 0 comments Download
M tracing/tracing/metrics/system_health/long_tasks_metric.html View 3 chunks +7 lines, -11 lines 0 comments Download
M tracing/tracing/metrics/system_health/memory_metric.html View 4 chunks +9 lines, -11 lines 0 comments Download
M tracing/tracing/metrics/system_health/memory_metric_test.html View 4 chunks +17 lines, -19 lines 0 comments Download
M tracing/tracing/metrics/system_health/power_metric.html View 3 chunks +4 lines, -5 lines 0 comments Download
M tracing/tracing/metrics/system_health/power_metric_test.html View 2 chunks +4 lines, -4 lines 0 comments Download
M tracing/tracing/metrics/system_health/rail_power_metric.html View 1 2 3 4 chunks +16 lines, -21 lines 0 comments Download
M tracing/tracing/metrics/system_health/rail_power_metric_test.html View 1 chunk +2 lines, -2 lines 0 comments Download
M tracing/tracing/metrics/system_health/responsiveness_metric.html View 3 chunks +8 lines, -13 lines 0 comments Download
M tracing/tracing/metrics/system_health/responsiveness_metric_test.html View 2 chunks +2 lines, -2 lines 0 comments Download
M tracing/tracing/metrics/system_health/scroll_power_metric.html View 3 chunks +9 lines, -12 lines 0 comments Download
M tracing/tracing/metrics/system_health/scroll_power_metric_test.html View 1 chunk +2 lines, -2 lines 0 comments Download
M tracing/tracing/metrics/system_health/tti_power_metric.html View 1 2 5 chunks +7 lines, -9 lines 0 comments Download
M tracing/tracing/metrics/system_health/tti_power_metric_test.html View 2 chunks +4 lines, -10 lines 0 comments Download
M tracing/tracing/metrics/system_health/webview_startup_metric.html View 2 chunks +12 lines, -13 lines 0 comments Download
M tracing/tracing/metrics/system_health/webview_startup_metric_test.html View 1 chunk +4 lines, -4 lines 0 comments Download
M tracing/tracing/metrics/tracing_metric.html View 5 chunks +15 lines, -22 lines 0 comments Download
M tracing/tracing/metrics/tracing_metric_test.html View 5 chunks +6 lines, -12 lines 0 comments Download
M tracing/tracing/metrics/v8/execution_metric.html View 6 chunks +77 lines, -89 lines 0 comments Download
M tracing/tracing/metrics/v8/execution_metric_test.html View 1 chunk +1 line, -1 line 0 comments Download
M tracing/tracing/metrics/v8/gc_metric.html View 12 chunks +32 lines, -37 lines 0 comments Download
M tracing/tracing/metrics/v8/gc_metric_test.html View 7 chunks +52 lines, -52 lines 0 comments Download
M tracing/tracing/metrics/v8/utils.html View 1 chunk +1 line, -2 lines 0 comments Download
M tracing/tracing/value/diagnostics/composition.html View 4 chunks +14 lines, -14 lines 0 comments Download
M tracing/tracing/value/diagnostics/composition_test.html View 2 chunks +9 lines, -10 lines 0 comments Download
M tracing/tracing/value/diagnostics/related_value_map.html View 2 chunks +10 lines, -10 lines 0 comments Download
M tracing/tracing/value/diagnostics/related_value_set.html View 2 chunks +5 lines, -5 lines 0 comments Download
M tracing/tracing/value/histogram.html View 1 5 chunks +42 lines, -5 lines 0 comments Download
M tracing/tracing/value/histogram_test.html View 12 chunks +21 lines, -52 lines 0 comments Download
M tracing/tracing/value/numeric.html View 3 chunks +0 lines, -33 lines 0 comments Download
M tracing/tracing/value/ui/composition_span.html View 1 chunk +4 lines, -5 lines 0 comments Download
M tracing/tracing/value/ui/composition_span_test.html View 1 chunk +4 lines, -5 lines 0 comments Download
M tracing/tracing/value/ui/histogram_span_test.html View 3 chunks +3 lines, -3 lines 0 comments Download
M tracing/tracing/value/ui/numeric_stats_span_test.html View 1 chunk +1 line, -1 line 0 comments Download
M tracing/tracing/value/ui/related_value_map_span_test.html View 1 chunk +2 lines, -5 lines 0 comments Download
M tracing/tracing/value/ui/related_value_set_span_test.html View 1 chunk +2 lines, -5 lines 0 comments Download
M tracing/tracing/value/ui/scalar_span.html View 1 2 3 chunks +1 line, -7 lines 0 comments Download
M tracing/tracing/value/ui/scalar_span_test.html View 1 chunk +0 lines, -4 lines 0 comments Download
M tracing/tracing/value/ui/value_set_table.html View 1 2 12 chunks +33 lines, -37 lines 0 comments Download
M tracing/tracing/value/ui/value_set_table_test.html View 8 chunks +43 lines, -64 lines 0 comments Download
M tracing/tracing/value/ui/value_set_view_test.html View 1 chunk +2 lines, -3 lines 0 comments Download
D tracing/tracing/value/value.html View 1 chunk +0 lines, -143 lines 0 comments Download
M tracing/tracing/value/value_set.html View 1 7 chunks +26 lines, -37 lines 0 comments Download
M tracing/tracing/value/value_set_test.html View 7 chunks +22 lines, -24 lines 0 comments Download
D tracing/tracing/value/value_test.html View 1 chunk +0 lines, -56 lines 0 comments Download

Messages

Total messages: 29 (20 generated)
benjhayden
:-)
4 years, 3 months ago (2016-09-14 18:13:05 UTC) #9
eakuefner
+oysteine for TP OWNERS lgtm % potential followup to rename more refs to Value https://codereview.chromium.org/2334233003/diff/60001/tracing/tracing/value/histogram.html ...
4 years, 3 months ago (2016-09-14 18:16:45 UTC) #12
oystein (OOO til 10th of July)
lgtm
4 years, 3 months ago (2016-09-15 20:48:47 UTC) #15
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/2334233003/100001
4 years, 3 months ago (2016-09-15 20:55:58 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Windows Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Windows%20Tryserver/builds/4764)
4 years, 3 months ago (2016-09-15 21:19:02 UTC) #20
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/2334233003/100001
4 years, 3 months ago (2016-09-15 21:29:52 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Mac Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Mac%20Tryserver/builds/4982)
4 years, 3 months ago (2016-09-15 21:52:02 UTC) #24
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/2334233003/120001
4 years, 3 months ago (2016-09-15 23:08:11 UTC) #27
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 23:31:00 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:120001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698