Commit 51eb7a02 authored by Brian White's avatar Brian White Committed by Commit Bot

Add history-table aggregation to UKM config.

Bug: 900230
Change-Id: I37dd02c2a7e1b8ef586e101e036d6871c7361424
Reviewed-on: https://chromium-review.googlesource.com/c/1307935Reviewed-by: default avatarBryan McQuade <bmcquade@chromium.org>
Commit-Queue: Brian White <bcwhite@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604599}
parent 566b6b5d
...@@ -603,6 +603,14 @@ be describing additional metrics about the same event. ...@@ -603,6 +603,14 @@ be describing additional metrics about the same event.
The average time taken by the compositing phase in microseconds in the The average time taken by the compositing phase in microseconds in the
event period. event period.
</summary> </summary>
<aggregation>
<history>
<index fields="profile.country"/>
<statistics>
<quantiles type="std-percentiles"/>
</statistics>
</history>
</aggregation>
</metric> </metric>
<metric name="Compositing.AverageRatio"> <metric name="Compositing.AverageRatio">
<summary> <summary>
...@@ -628,6 +636,14 @@ be describing additional metrics about the same event. ...@@ -628,6 +636,14 @@ be describing additional metrics about the same event.
The average time taken by the compositing commit at the end of the blink The average time taken by the compositing commit at the end of the blink
lifecycle, in microseconds in the event period. lifecycle, in microseconds in the event period.
</summary> </summary>
<aggregation>
<history>
<index fields="profile.country"/>
<statistics>
<quantiles type="std-percentiles"/>
</statistics>
</history>
</aggregation>
</metric> </metric>
<metric name="CompositingCommit.AverageRatio"> <metric name="CompositingCommit.AverageRatio">
<summary> <summary>
...@@ -654,6 +670,14 @@ be describing additional metrics about the same event. ...@@ -654,6 +670,14 @@ be describing additional metrics about the same event.
The average time taken by all forced style recalcs and layouts in The average time taken by all forced style recalcs and layouts in
microseconds in the event period. microseconds in the event period.
</summary> </summary>
<aggregation>
<history>
<index fields="profile.country"/>
<statistics>
<quantiles type="std-percentiles"/>
</statistics>
</history>
</aggregation>
</metric> </metric>
<metric name="ForcedStyleAndLayout.AverageRatio"> <metric name="ForcedStyleAndLayout.AverageRatio">
<summary> <summary>
...@@ -680,6 +704,14 @@ be describing additional metrics about the same event. ...@@ -680,6 +704,14 @@ be describing additional metrics about the same event.
The average time taken to compute IntersectionObserver observations in The average time taken to compute IntersectionObserver observations in
microseconds in the event period. microseconds in the event period.
</summary> </summary>
<aggregation>
<history>
<index fields="profile.country"/>
<statistics>
<quantiles type="std-percentiles"/>
</statistics>
</history>
</aggregation>
</metric> </metric>
<metric name="IntersectionObservation.AverageRatio"> <metric name="IntersectionObservation.AverageRatio">
<summary> <summary>
...@@ -706,6 +738,14 @@ be describing additional metrics about the same event. ...@@ -706,6 +738,14 @@ be describing additional metrics about the same event.
The average time between a BeginMainFrame and the commit of paint results, The average time between a BeginMainFrame and the commit of paint results,
in microseconds. in microseconds.
</summary> </summary>
<aggregation>
<history>
<index fields="profile.country"/>
<statistics>
<quantiles type="std-percentiles"/>
</statistics>
</history>
</aggregation>
</metric> </metric>
<metric name="MainFrame.WorstCase"> <metric name="MainFrame.WorstCase">
<summary> <summary>
...@@ -718,6 +758,14 @@ be describing additional metrics about the same event. ...@@ -718,6 +758,14 @@ be describing additional metrics about the same event.
The average time taken by the paint phase in microseconds in the event The average time taken by the paint phase in microseconds in the event
period. period.
</summary> </summary>
<aggregation>
<history>
<index fields="profile.country"/>
<statistics>
<quantiles type="std-percentiles"/>
</statistics>
</history>
</aggregation>
</metric> </metric>
<metric name="Paint.AverageRatio"> <metric name="Paint.AverageRatio">
<summary> <summary>
...@@ -743,6 +791,14 @@ be describing additional metrics about the same event. ...@@ -743,6 +791,14 @@ be describing additional metrics about the same event.
The average time taken by the pre-paint phase in microseconds in the event The average time taken by the pre-paint phase in microseconds in the event
period. period.
</summary> </summary>
<aggregation>
<history>
<index fields="profile.country"/>
<statistics>
<quantiles type="std-percentiles"/>
</statistics>
</history>
</aggregation>
</metric> </metric>
<metric name="PrePaint.AverageRatio"> <metric name="PrePaint.AverageRatio">
<summary> <summary>
...@@ -768,6 +824,14 @@ be describing additional metrics about the same event. ...@@ -768,6 +824,14 @@ be describing additional metrics about the same event.
The average time taken by the style and layout phases in microseconds in The average time taken by the style and layout phases in microseconds in
the event period. the event period.
</summary> </summary>
<aggregation>
<history>
<index fields="profile.country"/>
<statistics>
<quantiles type="std-percentiles"/>
</statistics>
</history>
</aggregation>
</metric> </metric>
<metric name="StyleAndLayout.AverageRatio"> <metric name="StyleAndLayout.AverageRatio">
<summary> <summary>
...@@ -802,6 +866,14 @@ be describing additional metrics about the same event. ...@@ -802,6 +866,14 @@ be describing additional metrics about the same event.
<summary> <summary>
Opt-in UseCounter feature. Opt-in UseCounter feature.
</summary> </summary>
<aggregation>
<history>
<index fields="profile.country"/>
<statistics>
<enumeration/>
</statistics>
</history>
</aggregation>
</metric> </metric>
</event> </event>
...@@ -1426,6 +1498,13 @@ be describing additional metrics about the same event. ...@@ -1426,6 +1498,13 @@ be describing additional metrics about the same event.
the event, no recording is made. The first GSU of every scrolling sequence the event, no recording is made. The first GSU of every scrolling sequence
is excluded from this metric. is excluded from this metric.
</summary> </summary>
<aggregation>
<history>
<statistics>
<quantiles type="std-percentiles"/>
</statistics>
</history>
</aggregation>
</metric> </metric>
</event> </event>
...@@ -1456,6 +1535,13 @@ be describing additional metrics about the same event. ...@@ -1456,6 +1535,13 @@ be describing additional metrics about the same event.
a given scroll gesture event sequence. If no swap was induced by the a given scroll gesture event sequence. If no swap was induced by the
event, no recording is made. event, no recording is made.
</summary> </summary>
<aggregation>
<history>
<statistics>
<quantiles type="std-percentiles"/>
</statistics>
</history>
</aggregation>
</metric> </metric>
</event> </event>
...@@ -3003,12 +3089,26 @@ be describing additional metrics about the same event. ...@@ -3003,12 +3089,26 @@ be describing additional metrics about the same event.
start to the time the DOMContentLoaded event is fired, for main frame start to the time the DOMContentLoaded event is fired, for main frame
documents. documents.
</summary> </summary>
<aggregation>
<history>
<statistics>
<quantiles type="std-percentiles"/>
</statistics>
</history>
</aggregation>
</metric> </metric>
<metric name="DocumentTiming.NavigationToLoadEventFired"> <metric name="DocumentTiming.NavigationToLoadEventFired">
<summary> <summary>
Measures the time in milliseconds from navigation timing's navigation Measures the time in milliseconds from navigation timing's navigation
start to the time the load event is fired, for main frame documents. start to the time the load event is fired, for main frame documents.
</summary> </summary>
<aggregation>
<history>
<statistics>
<quantiles type="std-percentiles"/>
</statistics>
</history>
</aggregation>
</metric> </metric>
<metric name="Experimental.InputToNavigationStart"> <metric name="Experimental.InputToNavigationStart">
<summary> <summary>
...@@ -3031,6 +3131,13 @@ be describing additional metrics about the same event. ...@@ -3031,6 +3131,13 @@ be describing additional metrics about the same event.
start to the first meaningful paint (http://bit.ly/ttfmp-doc), for main start to the first meaningful paint (http://bit.ly/ttfmp-doc), for main
frame documents. frame documents.
</summary> </summary>
<aggregation>
<history>
<statistics>
<quantiles type="std-percentiles"/>
</statistics>
</history>
</aggregation>
</metric> </metric>
<metric name="Experimental.PaintTiming.NavigationToLargestImagePaint"> <metric name="Experimental.PaintTiming.NavigationToLargestImagePaint">
<summary> <summary>
...@@ -3071,6 +3178,13 @@ be describing additional metrics about the same event. ...@@ -3071,6 +3178,13 @@ be describing additional metrics about the same event.
meaningful input per navigation. See https://goo.gl/tr1oTZ for a detailed meaningful input per navigation. See https://goo.gl/tr1oTZ for a detailed
explanation. In ms. explanation. In ms.
</summary> </summary>
<aggregation>
<history>
<statistics>
<quantiles type="std-percentiles"/>
</statistics>
</history>
</aggregation>
</metric> </metric>
<metric name="InteractiveTiming.FirstInputTimestamp"> <metric name="InteractiveTiming.FirstInputTimestamp">
<summary> <summary>
...@@ -3222,12 +3336,26 @@ be describing additional metrics about the same event. ...@@ -3222,12 +3336,26 @@ be describing additional metrics about the same event.
start to the time when the page first paints content. A contentful paint start to the time when the page first paints content. A contentful paint
includes a paint of text, image, SVG, or canvas. includes a paint of text, image, SVG, or canvas.
</summary> </summary>
<aggregation>
<history>
<statistics>
<quantiles type="std-percentiles"/>
</statistics>
</history>
</aggregation>
</metric> </metric>
<metric name="PaintTiming.NavigationToFirstPaint"> <metric name="PaintTiming.NavigationToFirstPaint">
<summary> <summary>
Measures the time in milliseconds from navigation timing's navigation Measures the time in milliseconds from navigation timing's navigation
start to the time the first paint is performed. start to the time the first paint is performed.
</summary> </summary>
<aggregation>
<history>
<statistics>
<quantiles type="std-percentiles"/>
</statistics>
</history>
</aggregation>
</metric> </metric>
<metric name="ParseTiming.NavigationToParseStart"> <metric name="ParseTiming.NavigationToParseStart">
<summary> <summary>
...@@ -4038,12 +4166,28 @@ be describing additional metrics about the same event. ...@@ -4038,12 +4166,28 @@ be describing additional metrics about the same event.
The final SecurityLevel of the page before it is closed or another The final SecurityLevel of the page before it is closed or another
navigation occurs. Based on the enum security_state::SecurityLevel. navigation occurs. Based on the enum security_state::SecurityLevel.
</summary> </summary>
<aggregation>
<history>
<index fields="profile.country"/>
<statistics>
<enumeration/>
</statistics>
</history>
</aggregation>
</metric> </metric>
<metric name="InitialSecurityLevel"> <metric name="InitialSecurityLevel">
<summary> <summary>
The initial SecurityLevel of the page when the navigation commits. Based The initial SecurityLevel of the page when the navigation commits. Based
on the enum security_state::SecurityLevel. on the enum security_state::SecurityLevel.
</summary> </summary>
<aggregation>
<history>
<index fields="profile.country"/>
<statistics>
<enumeration/>
</statistics>
</history>
</aggregation>
</metric> </metric>
<metric name="ScoreDelta"> <metric name="ScoreDelta">
<summary> <summary>
......
...@@ -16,6 +16,48 @@ _SUMMARY_TYPE = models.TextNodeType('summary') ...@@ -16,6 +16,48 @@ _SUMMARY_TYPE = models.TextNodeType('summary')
_LOWERCASE_NAME_FN = lambda n: n.attributes['name'].value.lower() _LOWERCASE_NAME_FN = lambda n: n.attributes['name'].value.lower()
_ENUMERATION_TYPE = models.ObjectNodeType(
'enumeration',
attributes=[],
single_line=True)
_QUANTILES_TYPE = models.ObjectNodeType(
'quantiles',
attributes=[
('type', unicode),
],
single_line=True)
_INDEX_TYPE = models.ObjectNodeType(
'index',
attributes=[
('fields', unicode),
],
single_line=True)
_STATISTICS_TYPE = models.ObjectNodeType(
'statistics',
attributes=[],
children=[
models.ChildType('quantiles', _QUANTILES_TYPE, False),
models.ChildType('enumeration', _ENUMERATION_TYPE, False),
])
_HISTORY_TYPE = models.ObjectNodeType(
'history',
attributes=[],
children=[
models.ChildType('index', _INDEX_TYPE, False),
models.ChildType('statistics', _STATISTICS_TYPE, True),
])
_AGGREGATION_TYPE = models.ObjectNodeType(
'aggregation',
attributes=[],
children=[
models.ChildType('history', _HISTORY_TYPE, False),
])
_METRIC_TYPE = models.ObjectNodeType( _METRIC_TYPE = models.ObjectNodeType(
'metric', 'metric',
attributes=[ attributes=[
...@@ -26,6 +68,7 @@ _METRIC_TYPE = models.ObjectNodeType( ...@@ -26,6 +68,7 @@ _METRIC_TYPE = models.ObjectNodeType(
models.ChildType('obsolete', _OBSOLETE_TYPE, False), models.ChildType('obsolete', _OBSOLETE_TYPE, False),
models.ChildType('owners', _OWNER_TYPE, True), models.ChildType('owners', _OWNER_TYPE, True),
models.ChildType('summary', _SUMMARY_TYPE, False), models.ChildType('summary', _SUMMARY_TYPE, False),
models.ChildType('aggregation', _AGGREGATION_TYPE, True),
]) ])
_EVENT_TYPE = models.ObjectNodeType( _EVENT_TYPE = models.ObjectNodeType(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment