diff --git a/cogl/cogl/cogl-journal.c b/cogl/cogl/cogl-journal.c index def32953b..cb7ed88fa 100644 --- a/cogl/cogl/cogl-journal.c +++ b/cogl/cogl/cogl-journal.c @@ -41,6 +41,7 @@ #include "cogl/cogl-profile.h" #include "cogl/cogl-attribute-private.h" #include "cogl/cogl-point-in-poly-private.h" +#include "cogl/cogl-trace.h" #include "cogl/cogl-private.h" #include "cogl/cogl1-context.h" @@ -1381,6 +1382,8 @@ _cogl_journal_flush (CoglJournal *journal) "The time spent discarding the Cogl journal after a flush", 0 /* no application private data */); + COGL_TRACE_BEGIN_SCOPED (Flush, "Cogl::Journal::flush()"); + if (journal->entries->len == 0) { post_fences (journal);