forked from upstream/UXP-mirror
gpu diagnostics: off by default behind JIHAD_GPU_LOG; the page's transactions on the timeline
T-512: the GPU path's [jihad-gpu] diagnostics print only with JIHAD_GPU_LOG=1, or in a device round's JIHAD_GPU_TIMELINE, JIHAD_GPU_VERIFY or JIHAD_GPU_DUMP_EVERY (one gate, gfx/2d/JihadGpuLog.h, exported as mozilla/gfx/JihadGpuLog.h); failures and fallbacks print anyway. A daemon on the GPU path now logs three startup lines from the engine instead of hundreds. T-517: with JIHAD_GPU_TIMELINE a layer transaction that holds the compositor thread 3 ms or more is logged with its parts (compositable ops and their tile uploads, layers updated, end), and every compose job with its uploads: the express lane's frames queue behind the page's transactions.
This commit is contained in:
1 parent
624e502302
commit
ea0652b2ab
15 files changed
+158
-67
No files matched your search
@@ -125,6 +125,8 @@
|
||||
#include "mozilla/RestyleManager.h"
|
||||
#include "LayoutLogging.h"
|
||||
|
||||
#include "mozilla/gfx/JihadGpuLog.h" // Jihad (T-512): JIHAD_GPU_LOG
|
||||
|
||||
// Make sure getpid() works.
|
||||
#ifdef XP_WIN
|
||||
#include <process.h>
|
||||
@@ -9464,7 +9466,7 @@ jihad_layout_set_displayport(nsIDocShell* aDocShell, float aVisW, float aVisH, f
|
||||
const ScreenMargin margins(aTop, right, bottom, aSide);
|
||||
static int sLogged = 0;
|
||||
if (sLogged++ < 6) {
|
||||
fprintf(stderr, "[jihad-gpu] displayport: scroll port %.0fx%.0f CSS px, shown %.0fx%.0f, margins top %.0f right %.0f bottom %.0f left %.0f\n",
|
||||
JIHAD_GPU_LOG("[jihad-gpu] displayport: scroll port %.0fx%.0f CSS px, shown %.0fx%.0f, margins top %.0f right %.0f bottom %.0f left %.0f\n",
|
||||
portW, portH, aVisW, aVisH, aTop, right, bottom, aSide);
|
||||
}
|
||||
if (!nsLayoutUtils::SetDisplayPortMargins(content, ps, margins, 0)) {
|
||||
|
||||
Reference in new issue
Block a user