Bug 1773152 - Don't call SendNotifyFrameStats(stats) if no one will use the stats, r=aosmond

Differential Revision: https://phabricator.services.mozilla.com/D148568
This commit is contained in:
Olli Pettay 2022-06-08 08:22:43 +00:00
parent abd6895dcb
commit f44787b8da

View File

@ -2492,7 +2492,8 @@ void WebRenderBridgeParent::FlushTransactionIdsForEpoch(
RecordPaintPhaseTelemetry(aStats);
if (contentFrameTime > 200) {
if (StaticPrefs::gfx_logging_slow_frames_enabled_AtStartup() &&
contentFrameTime > 200) {
aOutputStats.AppendElement(FrameStats(
transactionId.mId, aCompositeStartTime, aRenderStartTime, aEndTime,
contentFrameTime,