Bug 1507680 - Record detailed statistics about slow WebRender frames in about:support. r=jrmuizel

MozReview-Commit-ID: 84SjN1RvvAA

Differential Revision: https://phabricator.services.mozilla.com/D12372
This commit is contained in:
Matt Woodrow
2018-11-16 15:13:56 +13:00
parent a9e41ff337
commit 3e2a7bb8c2
12 changed files with 196 additions and 36 deletions

View File

@@ -236,7 +236,12 @@ WebRenderLayerManager::EndEmptyTransaction(EndTransactionFlags aFlags)
mWebRenderCommandBuilder.EmptyTransaction();
// Get the time of when the refresh driver start its tick (if available), otherwise
// use the time of when LayerManager::BeginTransaction was called.
TimeStamp refreshStart = mTransactionIdAllocator->GetTransactionStart();
if (!refreshStart) {
refreshStart = mTransactionStart;
}
// Skip the synchronization for buffer since we also skip the painting during
// device-reset status.
@@ -342,7 +347,13 @@ WebRenderLayerManager::EndTransactionWithoutLayer(nsDisplayList* aDisplayList,
ClearPendingScrollInfoUpdate();
mLatestTransactionId = mTransactionIdAllocator->GetTransactionId(/*aThrottle*/ true);
// Get the time of when the refresh driver start its tick (if available), otherwise
// use the time of when LayerManager::BeginTransaction was called.
TimeStamp refreshStart = mTransactionIdAllocator->GetTransactionStart();
if (!refreshStart) {
refreshStart = mTransactionStart;
}
if (mAsyncResourceUpdates) {
if (resourceUpdates.IsEmpty()) {