Changeset 57387 in webkit
- Timestamp:
- Apr 9, 2010 5:41:37 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r57386 r57387 1 2010-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 1 18 2010-04-09 Abhishek Arya <inferno@chromium.org> 2 19 -
trunk/WebCore/inspector/InspectorTimelineAgent.cpp
r57280 r57387 145 145 void InspectorTimelineAgent::didInstallTimer(int timerId, int timeout, bool singleShot) 146 146 { 147 pushGCEventRecords(); 147 148 ScriptObject record = TimelineRecordFactory::createGenericRecord(m_frontend, WTF::currentTimeMS()); 148 149 record.set("data", TimelineRecordFactory::createTimerInstallData(m_frontend, timerId, timeout, singleShot)); … … 152 153 void InspectorTimelineAgent::didRemoveTimer(int timerId) 153 154 { 155 pushGCEventRecords(); 154 156 ScriptObject record = TimelineRecordFactory::createGenericRecord(m_frontend, WTF::currentTimeMS()); 155 157 record.set("data", TimelineRecordFactory::createGenericTimerData(m_frontend, timerId)); … … 240 242 void InspectorTimelineAgent::didMarkTimeline(const String& message) 241 243 { 244 pushGCEventRecords(); 242 245 ScriptObject record = TimelineRecordFactory::createGenericRecord(m_frontend, WTF::currentTimeMS()); 243 246 record.set("data", TimelineRecordFactory::createMarkTimelineData(m_frontend, message)); … … 247 250 void InspectorTimelineAgent::didMarkDOMContentEvent() 248 251 { 252 pushGCEventRecords(); 249 253 ScriptObject record = TimelineRecordFactory::createGenericRecord(m_frontend, WTF::currentTimeMS()); 250 254 addRecordToTimeline(record, MarkDOMContentEventType); … … 253 257 void InspectorTimelineAgent::didMarkLoadEvent() 254 258 { 259 pushGCEventRecords(); 255 260 ScriptObject record = TimelineRecordFactory::createGenericRecord(m_frontend, WTF::currentTimeMS()); 256 261 addRecordToTimeline(record, MarkLoadEventType); … … 270 275 271 276 void InspectorTimelineAgent::addRecordToTimeline(ScriptObject record, TimelineRecordType type) 272 { 273 if (type != GCEventTimelineRecordType) 274 pushGCEventRecords(); 277 { 275 278 record.set("type", type); 276 279 setHeapSizeStatistic(record); … … 297 300 // an event. Don't treat as an error. 298 301 if (!m_recordStack.isEmpty()) { 302 pushGCEventRecords(); 299 303 TimelineRecordEntry entry = m_recordStack.last(); 300 304 m_recordStack.removeLast();
Note: See TracChangeset
for help on using the changeset viewer.