Bug 1466146 - Add FlushRasterization as a metric for CONTENT_PAINT_PHASE_WEIGHT. r=mattwoodrow, data-review=francois

--HG--
extra : rebase_source : dcbf77adc7891b5f9ca49627370ce71f64ab3b87
This commit is contained in:
Ryan Hunt 2018-06-05 12:30:42 -05:00
Родитель 177db04075
Коммит 27b4840273
4 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -320,7 +320,10 @@ ClientLayerManager::EndTransactionInternal(DrawPaintedLayerCallback aCallback,
// Wait for any previous async paints to complete before starting to paint again.
// Do this outside the profiler and telemetry block so this doesn't count as time
// spent rasterizing.
FlushAsyncPaints();
{
PaintTelemetry::AutoRecord record(PaintTelemetry::Metric::FlushRasterization);
FlushAsyncPaints();
}
PaintTelemetry::AutoRecord record(PaintTelemetry::Metric::Rasterization);
AUTO_PROFILER_TRACING("Paint", "Rasterize");

Просмотреть файл

@ -10026,6 +10026,7 @@ PaintTelemetry::AutoRecordPaint::~AutoRecordPaint()
double dlMs = sMetrics[Metric::DisplayList];
double flbMs = sMetrics[Metric::Layerization];
double frMs = sMetrics[Metric::FlushRasterization];
double rMs = sMetrics[Metric::Rasterization];
// If the total time was >= 16ms, then it's likely we missed a frame due to
@ -10033,10 +10034,12 @@ PaintTelemetry::AutoRecordPaint::~AutoRecordPaint()
if (totalMs >= 16.0) {
recordLarge(NS_LITERAL_CSTRING("dl"), dlMs);
recordLarge(NS_LITERAL_CSTRING("flb"), flbMs);
recordLarge(NS_LITERAL_CSTRING("fr"), frMs);
recordLarge(NS_LITERAL_CSTRING("r"), rMs);
} else {
recordSmall(NS_LITERAL_CSTRING("dl"), dlMs);
recordSmall(NS_LITERAL_CSTRING("flb"), flbMs);
recordSmall(NS_LITERAL_CSTRING("fr"), frMs);
recordSmall(NS_LITERAL_CSTRING("r"), rMs);
}
}

Просмотреть файл

@ -6856,6 +6856,7 @@ class PaintTelemetry
enum class Metric {
DisplayList,
Layerization,
FlushRasterization,
Rasterization,
COUNT,
};

Просмотреть файл

@ -12825,6 +12825,7 @@
"bug_numbers": [1309442],
"expires_in_version": "66",
"keyed": true,
"keys": ["dl", "flb", "fr", "r"],
"kind": "linear",
"high": 100,
"n_buckets": 10,
@ -12836,6 +12837,7 @@
"bug_numbers": [1430897],
"expires_in_version": "66",
"keyed": true,
"keys": ["dl", "flb", "fr", "r"],
"kind": "linear",
"high": 100,
"n_buckets": 10,