Changeset 57387 in webkit


Ignore:
Timestamp:
Apr 9, 2010 5:41:37 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-09 Jaime Yap <jaimeyap@google.com>

Reviewed by Pavel Feldman.

Web Inspector: Fixes "wrong parent" for GCEvents that come at the end of a
timeline record node.
https://bugs.webkit.org/show_bug.cgi?id=37340

  • inspector/InspectorTimelineAgent.cpp: (WebCore::InspectorTimelineAgent::didInstallTimer): (WebCore::InspectorTimelineAgent::didRemoveTimer): (WebCore::InspectorTimelineAgent::didMarkTimeline): (WebCore::InspectorTimelineAgent::didMarkDOMContentEvent): (WebCore::InspectorTimelineAgent::didMarkLoadEvent): (WebCore::InspectorTimelineAgent::addRecordToTimeline): (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r57386 r57387  
     12010-04-09  Jaime Yap  <jaimeyap@google.com>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        Web Inspector: Fixes "wrong parent" for GCEvents that come at the end of a
     6        timeline record node.
     7        https://bugs.webkit.org/show_bug.cgi?id=37340
     8
     9        * inspector/InspectorTimelineAgent.cpp:
     10        (WebCore::InspectorTimelineAgent::didInstallTimer):
     11        (WebCore::InspectorTimelineAgent::didRemoveTimer):
     12        (WebCore::InspectorTimelineAgent::didMarkTimeline):
     13        (WebCore::InspectorTimelineAgent::didMarkDOMContentEvent):
     14        (WebCore::InspectorTimelineAgent::didMarkLoadEvent):
     15        (WebCore::InspectorTimelineAgent::addRecordToTimeline):
     16        (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
     17
    1182010-04-09  Abhishek Arya  <inferno@chromium.org>
    219
  • trunk/WebCore/inspector/InspectorTimelineAgent.cpp

    r57280 r57387  
    145145void InspectorTimelineAgent::didInstallTimer(int timerId, int timeout, bool singleShot)
    146146{
     147    pushGCEventRecords();
    147148    ScriptObject record = TimelineRecordFactory::createGenericRecord(m_frontend, WTF::currentTimeMS());
    148149    record.set("data", TimelineRecordFactory::createTimerInstallData(m_frontend, timerId, timeout, singleShot));
     
    152153void InspectorTimelineAgent::didRemoveTimer(int timerId)
    153154{
     155    pushGCEventRecords();
    154156    ScriptObject record = TimelineRecordFactory::createGenericRecord(m_frontend, WTF::currentTimeMS());
    155157    record.set("data", TimelineRecordFactory::createGenericTimerData(m_frontend, timerId));
     
    240242void InspectorTimelineAgent::didMarkTimeline(const String& message)
    241243{
     244    pushGCEventRecords();
    242245    ScriptObject record = TimelineRecordFactory::createGenericRecord(m_frontend, WTF::currentTimeMS());
    243246    record.set("data", TimelineRecordFactory::createMarkTimelineData(m_frontend, message));
     
    247250void InspectorTimelineAgent::didMarkDOMContentEvent()
    248251{
     252    pushGCEventRecords();
    249253    ScriptObject record = TimelineRecordFactory::createGenericRecord(m_frontend, WTF::currentTimeMS());
    250254    addRecordToTimeline(record, MarkDOMContentEventType);
     
    253257void InspectorTimelineAgent::didMarkLoadEvent()
    254258{
     259    pushGCEventRecords();
    255260    ScriptObject record = TimelineRecordFactory::createGenericRecord(m_frontend, WTF::currentTimeMS());
    256261    addRecordToTimeline(record, MarkLoadEventType);
     
    270275
    271276void InspectorTimelineAgent::addRecordToTimeline(ScriptObject record, TimelineRecordType type)
    272 
    273     if (type != GCEventTimelineRecordType)
    274         pushGCEventRecords();
     277{
    275278    record.set("type", type);
    276279    setHeapSizeStatistic(record);
     
    297300    // an event.  Don't treat as an error.
    298301    if (!m_recordStack.isEmpty()) {
     302        pushGCEventRecords();
    299303        TimelineRecordEntry entry = m_recordStack.last();
    300304        m_recordStack.removeLast();
Note: See TracChangeset for help on using the changeset viewer.