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

Unified Diff: tracing/tracing/metrics/system_health/power_metric_test.html

Issue 2862103002: Fix main frame detection in loading metrics. (Closed)
Patch Set: rebase Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: tracing/tracing/metrics/system_health/power_metric_test.html
diff --git a/tracing/tracing/metrics/system_health/power_metric_test.html b/tracing/tracing/metrics/system_health/power_metric_test.html
index c2ce6089152944bfd18af011e7e0d53ff3715c7a..6758beba51c331ee9244dc38013a53937153f9e9 100644
--- a/tracing/tracing/metrics/system_health/power_metric_test.html
+++ b/tracing/tracing/metrics/system_health/power_metric_test.html
@@ -451,6 +451,13 @@ tr.b.unittest.testSuite(function() {
rendererProcess.objects.addSnapshot('ptr', 'loading', 'FrameLoader', 300,
{isLoadingMainFrame: true, frame: {id_ref: '0xdeadbeef'},
documentLoaderURL: 'http://example.com'});
+ mainThread.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx({
+ cat: 'loading',
+ title: 'markAsMainFrame',
+ start: 300,
+ duration: 0.0,
+ args: {frame: '0xdeadbeef'}
+ }));
mainThread.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx({
cat: 'loading',

Powered by Google App Engine
This is Rietveld 408576698