⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 118606 in webkit


Ignore:
Timestamp:
May 25, 2012, 11:39:29 PM (14 years ago)
Author:
nduca@chromium.org
Message:

[chromium] Instrument V8 GC with TraceEvent
https://bugs.webkit.org/show_bug.cgi?id=87530

Reviewed by Kentaro Hara.

We sometimes get performance issues where performance stalls can
be attributed to badly timed GC operations, especially ones that
happen just before a frame running. This adds tracing calls around
GC so that we can better understand these kinds of hangs.

  • bindings/v8/V8GCController.cpp:

(WebCore::V8GCController::gcPrologue):
(WebCore::V8GCController::gcEpilogue):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r118601 r118606  
     12012-05-25  Nat Duca  <nduca@chromium.org>
     2
     3        [chromium] Instrument V8 GC with TraceEvent
     4        https://bugs.webkit.org/show_bug.cgi?id=87530
     5
     6        Reviewed by Kentaro Hara.
     7
     8        We sometimes get performance issues where performance stalls can
     9        be attributed to badly timed GC operations, especially ones that
     10        happen just before a frame running. This adds tracing calls around
     11        GC so that we can better understand these kinds of hangs.
     12
     13        * bindings/v8/V8GCController.cpp:
     14        (WebCore::V8GCController::gcPrologue):
     15        (WebCore::V8GCController::gcEpilogue):
     16
    1172012-05-25  Garrett Casto  <gcasto@chromium.org>
    218
  • trunk/Source/WebCore/bindings/v8/V8GCController.cpp

    r115595 r118606  
    6060#include <wtf/UnusedParam.h>
    6161
     62#if PLATFORM(CHROMIUM)
     63#include "TraceEvent.h"
     64#endif
     65
    6266namespace WebCore {
    6367
     
    390394    v8::HandleScope scope;
    391395
     396#if PLATFORM(CHROMIUM)
     397    TRACE_EVENT_BEGIN0("v8", "GC");
     398#endif
     399
    392400#ifndef NDEBUG
    393401    DOMObjectVisitor domObjectVisitor;
     
    510518    enumerateGlobalHandles();
    511519#endif
     520
     521#if PLATFORM(CHROMIUM)
     522    TRACE_EVENT_END0("v8", "GC");
     523#endif
    512524}
    513525
Note: See TracChangeset for help on using the changeset viewer.