Changeset 87988 in webkit


Ignore:
Timestamp:
Jun 2, 2011 7:34:31 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-06-02 James Robinson <jamesr@chromium.org>

Reviewed by Dimitri Glazkov.

[chromium][V8] Add trace events for timer fires and event listener dispatches
https://bugs.webkit.org/show_bug.cgi?id=61977

Adds TRACE_EVENT macro around timer and event listener dispatches. When tracing (a chromium feature) is
enabled, this allows correlating these events with painting, compositing, and everything else in chromium that
is traced. When tracing is disabled, this macro does nothing useful. Trace points are very cheap when tracing
is disabled so this should have no performance impact for non-developers.

  • bindings/v8/ScheduledAction.cpp: (WebCore::ScheduledAction::execute):
  • bindings/v8/V8EventListener.cpp: (WebCore::V8EventListener::callListenerFunction):
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r87987 r87988  
     12011-06-02  James Robinson  <jamesr@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        [chromium][V8] Add trace events for timer fires and event listener dispatches
     6        https://bugs.webkit.org/show_bug.cgi?id=61977
     7
     8        Adds TRACE_EVENT macro around timer and event listener dispatches.  When tracing (a chromium feature) is
     9        enabled, this allows correlating these events with painting, compositing, and everything else in chromium that
     10        is traced.  When tracing is disabled, this macro does nothing useful.  Trace points are very cheap when tracing
     11        is disabled so this should have no performance impact for non-developers.
     12
     13        * bindings/v8/ScheduledAction.cpp:
     14        (WebCore::ScheduledAction::execute):
     15        * bindings/v8/V8EventListener.cpp:
     16        (WebCore::V8EventListener::callListenerFunction):
     17
    1182011-06-02  John Bates  <jbates@google.com>
    219
  • trunk/Source/WebCore/bindings/v8/ScheduledAction.cpp

    r71735 r87988  
    3535#include "ScriptExecutionContext.h"
    3636#include "ScriptSourceCode.h"
     37#include "TraceEvent.h"
    3738
    3839#include "V8Binding.h"
     
    111112        return; // JS may not be enabled.
    112113
     114    TRACE_EVENT("ScheduledAction::execute", this, 0);
     115
    113116    v8::Context::Scope scope(v8Context);
    114117
  • trunk/Source/WebCore/bindings/v8/V8EventListener.cpp

    r78316 r87988  
    3232#include "V8EventListener.h"
    3333
     34#include "TraceEvent.h"
    3435#include "V8Proxy.h"
    3536
     
    7475    v8::Handle<v8::Value> parameters[1] = { jsEvent };
    7576
     77    TRACE_EVENT("V8EventListener::callListenerFunction", this, 0);
     78
    7679    if (V8Proxy* proxy = V8Proxy::retrieve(context))
    7780        return proxy->callFunction(handlerFunction, receiver, 1, parameters);
Note: See TracChangeset for help on using the changeset viewer.