mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1107733. Integrate paint times into telemetry. r=mattwoodrow
This commit is contained in:
parent
b04ae532a6
commit
b173161c94
@ -93,6 +93,7 @@
|
||||
#include "nsFrameSelection.h"
|
||||
#include "FrameLayerBuilder.h"
|
||||
#include "mozilla/layers/APZCTreeManager.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
|
||||
#ifdef MOZ_XUL
|
||||
#include "nsXULPopupManager.h"
|
||||
@ -2892,6 +2893,7 @@ nsLayoutUtils::PaintFrame(nsRenderingContext* aRenderingContext, nsIFrame* aFram
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
TimeStamp startBuildDisplayList = TimeStamp::Now();
|
||||
nsDisplayListBuilder builder(aFrame, nsDisplayListBuilder::PAINTING,
|
||||
!(aFlags & PAINT_HIDE_CARET));
|
||||
|
||||
@ -3066,6 +3068,8 @@ nsLayoutUtils::PaintFrame(nsRenderingContext* aRenderingContext, nsIFrame* aFram
|
||||
}
|
||||
|
||||
builder.LeavePresShell(aFrame);
|
||||
Telemetry::AccumulateTimeDelta(Telemetry::PAINT_BUILD_DISPLAYLIST_TIME,
|
||||
startBuildDisplayList);
|
||||
|
||||
if (builder.GetHadToIgnorePaintSuppression()) {
|
||||
willFlushRetainedLayers = true;
|
||||
@ -3132,8 +3136,11 @@ nsLayoutUtils::PaintFrame(nsRenderingContext* aRenderingContext, nsIFrame* aFram
|
||||
flags |= nsDisplayList::PAINT_COMPRESSED;
|
||||
}
|
||||
|
||||
TimeStamp paintStart = TimeStamp::Now();
|
||||
nsRefPtr<LayerManager> layerManager =
|
||||
list.PaintRoot(&builder, aRenderingContext, flags);
|
||||
Telemetry::AccumulateTimeDelta(Telemetry::PAINT_RASTERIZE_TIME,
|
||||
paintStart);
|
||||
|
||||
#ifdef MOZ_DUMP_PAINTING
|
||||
if (gfxUtils::DumpPaintList() || gfxUtils::sDumpPainting) {
|
||||
|
@ -1386,6 +1386,8 @@ nsRefreshDriver::Tick(int64_t aNowEpoch, TimeStamp aNowTime)
|
||||
}
|
||||
}
|
||||
|
||||
mozilla::Telemetry::AccumulateTimeDelta(mozilla::Telemetry::REFRESH_DRIVER_TICK, mTickStart);
|
||||
|
||||
for (uint32_t i = 0; i < mPostRefreshObservers.Length(); ++i) {
|
||||
mPostRefreshObservers[i]->DidRefresh();
|
||||
}
|
||||
|
@ -2168,6 +2168,27 @@
|
||||
"n_buckets": 20,
|
||||
"description": "The number of unusable addresses reported for each record"
|
||||
},
|
||||
"REFRESH_DRIVER_TICK" : {
|
||||
"expires_in_version": "never",
|
||||
"description": "Total time spent ticking the refresh driver in milliseconds",
|
||||
"kind": "exponential",
|
||||
"high": "1000",
|
||||
"n_buckets": 50
|
||||
},
|
||||
"PAINT_BUILD_DISPLAYLIST_TIME" : {
|
||||
"expires_in_version": "never",
|
||||
"description": "Time spent in building displaylists in milliseconds",
|
||||
"kind": "exponential",
|
||||
"high": "1000",
|
||||
"n_buckets": 50
|
||||
},
|
||||
"PAINT_RASTERIZE_TIME" : {
|
||||
"expires_in_version": "never",
|
||||
"description": "Time spent rasterizing each frame in milliseconds",
|
||||
"kind": "exponential",
|
||||
"high": "1000",
|
||||
"n_buckets": 50
|
||||
},
|
||||
"PREDICTOR_PREDICT_ATTEMPTS": {
|
||||
"expires_in_version": "never",
|
||||
"kind": "exponential",
|
||||
|
Loading…
Reference in New Issue
Block a user