Skip to content
  • caseq@chromium.org's avatar
    Web Inspector: Annotate timeline records with a frame identifier · c9e99681
    caseq@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=86406
    
    Patch by Bryan McQuade <bmcquade@google.com> on 2012-06-08
    Reviewed by Vsevolod Vlasov.
    
    Source/WebCore:
    
    Tests: Updated existing layout tests.
    
    * inspector/InspectorController.cpp:
    (WebCore::InspectorController::InspectorController):
    * inspector/InspectorInstrumentation.cpp:
    (WebCore::frameForScriptExecutionContext):
    (WebCore):
    (WebCore::InspectorInstrumentation::didScheduleResourceRequestImpl):
    (WebCore::InspectorInstrumentation::didInstallTimerImpl):
    (WebCore::InspectorInstrumentation::didRemoveTimerImpl):
    (WebCore::InspectorInstrumentation::willCallFunctionImpl):
    (WebCore::InspectorInstrumentation::willChangeXHRReadyStateImpl):
    (WebCore::InspectorInstrumentation::willDispatchEventImpl):
    (WebCore::InspectorInstrumentation::willDispatchEventOnWindowImpl):
    (WebCore::InspectorInstrumentation::willEvaluateScriptImpl):
    (WebCore::InspectorInstrumentation::willFireTimerImpl):
    (WebCore::InspectorInstrumentation::willLayoutImpl):
    (WebCore::InspectorInstrumentation::willLoadXHRImpl):
    (WebCore::InspectorInstrumentation::willPaintImpl):
    (WebCore::InspectorInstrumentation::willRecalculateStyleImpl):
    (WebCore::InspectorInstrumentation::willSendRequestImpl):
    (WebCore::InspectorInstrumentation::willReceiveResourceDataImpl):
    (WebCore::InspectorInstrumentation::willReceiveResourceResponseImpl):
    (WebCore::InspectorInstrumentation::didFinishLoadingImpl):
    (WebCore::InspectorInstrumentation::didFailLoadingImpl):
    (WebCore::InspectorInstrumentation::domContentLoadedEventFiredImpl):
    (WebCore::InspectorInstrumentation::loadEventFiredImpl):
    (WebCore::InspectorInstrumentation::willWriteHTMLImpl):
    (WebCore::InspectorInstrumentation::didRequestAnimationFrameImpl):
    (WebCore::InspectorInstrumentation::didCancelAnimationFrameImpl):
    (WebCore::InspectorInstrumentation::willFireAnimationFrameImpl):
    * inspector/InspectorInstrumentation.h:
    (InspectorInstrumentation):
    (WebCore::InspectorInstrumentation::didScheduleResourceRequest):
    (WebCore::InspectorInstrumentation::didInstallTimer):
    (WebCore::InspectorInstrumentation::didRemoveTimer):
    (WebCore::InspectorInstrumentation::willCallFunction):
    (WebCore::InspectorInstrumentation::willChangeXHRReadyState):
    (WebCore::InspectorInstrumentation::willDispatchEvent):
    (WebCore::InspectorInstrumentation::willEvaluateScript):
    (WebCore::InspectorInstrumentation::willFireTimer):
    (WebCore::InspectorInstrumentation::willLayout):
    (WebCore::InspectorInstrumentation::willLoadXHR):
    (WebCore::InspectorInstrumentation::willPaint):
    (WebCore::InspectorInstrumentation::willRecalculateStyle):
    (WebCore::InspectorInstrumentation::willReceiveResourceData):
    (WebCore::InspectorInstrumentation::willReceiveResourceResponse):
    (WebCore::InspectorInstrumentation::willWriteHTML):
    (WebCore::InspectorInstrumentation::didRequestAnimationFrame):
    (WebCore::InspectorInstrumentation::didCancelAnimationFrame):
    (WebCore::InspectorInstrumentation::willFireAnimationFrame):
    * inspector/InspectorTimelineAgent.cpp:
    (WebCore::InspectorTimelineAgent::pushGCEventRecords):
    (WebCore::InspectorTimelineAgent::didBeginFrame):
    (WebCore::InspectorTimelineAgent::willCallFunction):
    (WebCore::InspectorTimelineAgent::willDispatchEvent):
    (WebCore::InspectorTimelineAgent::willLayout):
    (WebCore::InspectorTimelineAgent::willRecalculateStyle):
    (WebCore::InspectorTimelineAgent::willPaint):
    (WebCore::InspectorTimelineAgent::willComposite):
    (WebCore::InspectorTimelineAgent::willWriteHTML):
    (WebCore::InspectorTimelineAgent::didInstallTimer):
    (WebCore::InspectorTimelineAgent::didRemoveTimer):
    (WebCore::InspectorTimelineAgent::willFireTimer):
    (WebCore::InspectorTimelineAgent::willChangeXHRReadyState):
    (WebCore::InspectorTimelineAgent::willLoadXHR):
    (WebCore::InspectorTimelineAgent::willEvaluateScript):
    (WebCore::InspectorTimelineAgent::didScheduleResourceRequest):
    (WebCore::InspectorTimelineAgent::willSendResourceRequest):
    (WebCore::InspectorTimelineAgent::willReceiveResourceData):
    (WebCore::InspectorTimelineAgent::willReceiveResourceResponse):
    (WebCore::InspectorTimelineAgent::didFinishLoadingResource):
    (WebCore::InspectorTimelineAgent::didTimeStamp):
    (WebCore::InspectorTimelineAgent::didMarkDOMContentEvent):
    (WebCore::InspectorTimelineAgent::didMarkLoadEvent):
    (WebCore::InspectorTimelineAgent::didRequestAnimationFrame):
    (WebCore::InspectorTimelineAgent::didCancelAnimationFrame):
    (WebCore::InspectorTimelineAgent::willFireAnimationFrame):
    (WebCore::InspectorTimelineAgent::addRecordToTimeline):
    (WebCore::InspectorTimelineAgent::innerAddRecordToTimeline):
    (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
    (WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
    (WebCore::InspectorTimelineAgent::appendRecord):
    (WebCore::InspectorTimelineAgent::pushCurrentRecord):
    (WebCore::InspectorTimelineAgent::pushCancelableRecord):
    (WebCore::InspectorTimelineAgent::commitCancelableRecords):
    * inspector/InspectorTimelineAgent.h:
    (WebCore):
    (WebCore::InspectorTimelineAgent::create):
    (InspectorTimelineAgent):
    (WebCore::InspectorTimelineAgent::TimelineRecordEntry::TimelineRecordEntry):
    (TimelineRecordEntry):
    * inspector/WorkerInspectorController.cpp:
    (WebCore::WorkerInspectorController::WorkerInspectorController):
    * inspector/front-end/TimelinePresentationModel.js:
    (WebInspector.TimelinePresentationModel.isEventDivider):
    (WebInspector.TimelinePresentationModel.Record):
    
    LayoutTests:
    
    * inspector/timeline/timeline-animation-frame-expected.txt:
    * inspector/timeline/timeline-dom-content-loaded-event-expected.txt:
    * inspector/timeline/timeline-event-dispatch-expected.txt:
    * inspector/timeline/timeline-injected-script-eval-expected.txt:
    * inspector/timeline/timeline-layout-expected.txt:
    * inspector/timeline/timeline-load-event-expected.txt:
    * inspector/timeline/timeline-network-resource-expected.txt:
    * inspector/timeline/timeline-paint-expected.txt:
    * inspector/timeline/timeline-parse-html-expected.txt:
    * inspector/timeline/timeline-recalculate-styles-expected.txt:
    * inspector/timeline/timeline-script-tag-1-expected.txt:
    * inspector/timeline/timeline-script-tag-2-expected.txt:
    * inspector/timeline/timeline-test.js:
    * inspector/timeline/timeline-timer-expected.txt:
    * platform/chromium/inspector/timeline/timeline-animation-frame-expected.txt:
    * platform/chromium/inspector/timeline/timeline-event-dispatch-expected.txt:
    * platform/chromium/inspector/timeline/timeline-layout-expected.txt:
    * platform/chromium/inspector/timeline/timeline-network-resource-expected.txt:
    * platform/chromium/inspector/timeline/timeline-paint-expected.txt:
    * platform/chromium/inspector/timeline/timeline-parse-html-expected.txt:
    * platform/chromium/inspector/timeline/timeline-timer-expected.txt:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119826 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c9e99681