Changeset 87988 in webkit
- Timestamp:
- Jun 2, 2011 7:34:31 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r87987 r87988 1 2011-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 1 18 2011-06-02 John Bates <jbates@google.com> 2 19 -
trunk/Source/WebCore/bindings/v8/ScheduledAction.cpp
r71735 r87988 35 35 #include "ScriptExecutionContext.h" 36 36 #include "ScriptSourceCode.h" 37 #include "TraceEvent.h" 37 38 38 39 #include "V8Binding.h" … … 111 112 return; // JS may not be enabled. 112 113 114 TRACE_EVENT("ScheduledAction::execute", this, 0); 115 113 116 v8::Context::Scope scope(v8Context); 114 117 -
trunk/Source/WebCore/bindings/v8/V8EventListener.cpp
r78316 r87988 32 32 #include "V8EventListener.h" 33 33 34 #include "TraceEvent.h" 34 35 #include "V8Proxy.h" 35 36 … … 74 75 v8::Handle<v8::Value> parameters[1] = { jsEvent }; 75 76 77 TRACE_EVENT("V8EventListener::callListenerFunction", this, 0); 78 76 79 if (V8Proxy* proxy = V8Proxy::retrieve(context)) 77 80 return proxy->callFunction(handlerFunction, receiver, 1, parameters);
Note: See TracChangeset
for help on using the changeset viewer.