Bug 919712 - Add labels in IPC message wait. r=benjamin

This commit is contained in:
Benoit Girard 2013-09-24 11:40:01 -04:00
parent 69a7a0d34e
commit c6760a62f1
2 changed files with 4 additions and 1 deletions

View File

@ -1250,7 +1250,7 @@ CompositorOGL::DrawQuad(const Rect& aRect, const Rect& aClipRect,
void
CompositorOGL::EndFrame()
{
PROFILER_LABEL("CompositorOGL", "BeginFrame");
PROFILER_LABEL("CompositorOGL", "EndFrame");
MOZ_ASSERT(mCurrentRenderTarget == mWindowRenderTarget, "Rendering target not properly restored");
#ifdef MOZ_DUMP_PAINTING

View File

@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/scoped_nsautorelease_pool.h"
#include "GeckoProfiler.h"
namespace base {
@ -39,10 +40,12 @@ void MessagePumpDefault::Run(Delegate* delegate) {
continue;
if (delayed_work_time_.is_null()) {
PROFILER_LABEL("MessagePump", "Wait");
event_.Wait();
} else {
TimeDelta delay = delayed_work_time_ - TimeTicks::Now();
if (delay > TimeDelta()) {
PROFILER_LABEL("MessagePump", "Wait");
event_.TimedWait(delay);
} else {
// It looks like delayed_work_time_ indicates a time in the past, so we