1. 26 Oct, 2009 1 commit
    • eric@webkit.org's avatar
      2009-10-26 Kelly Norton <knorton@google.com> · bf3b5969
      eric@webkit.org authored
              Reviewed by Pavel Feldman.
      
              Adds DOMTimer support to InspectorTimelineAgent.
              https://bugs.webkit.org/show_bug.cgi?id=30467
      
              * inspector/InspectorTimelineAgent.cpp: Added timer support and fixed some method names.
              (WebCore::InspectorTimelineAgent::didDispatchDOMEvent):
              (WebCore::InspectorTimelineAgent::didLayout):
              (WebCore::InspectorTimelineAgent::didRecalculateStyle):
              (WebCore::InspectorTimelineAgent::didPaint):
              (WebCore::InspectorTimelineAgent::didWriteHTML):
              (WebCore::InspectorTimelineAgent::didInstallTimer): Added.
              (WebCore::InspectorTimelineAgent::didRemoveTimer): Added.
              (WebCore::InspectorTimelineAgent::willFireTimer): Added.
              (WebCore::InspectorTimelineAgent::didFireTimer): Added.
              (WebCore::InspectorTimelineAgent::addItemToTimeline): Added.
              (WebCore::InspectorTimelineAgent::didCompleteCurrentTimelineItem): Renamed.
              * inspector/InspectorTimelineAgent.h:
              (WebCore::):
              * inspector/TimelineItemFactory.cpp: Add methods for timer-related ScriptObjects.
              (WebCore::TimelineItemFactory::createGenericTimerTimelineItem):
              (WebCore::TimelineItemFactory::createTimerInstallTimelineItem):
              * inspector/TimelineItemFactory.h:
              * page/DOMTimer.cpp: Added instrumentation points.
              (WebCore::DOMTimer::install):
              (WebCore::DOMTimer::removeById):
              (WebCore::DOMTimer::fired):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50068 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bf3b5969
  2. 23 Oct, 2009 1 commit
    • pfeldman@chromium.org's avatar
      2009-10-23 Kelly Norton <knorton@google.com> · 8cc4af0e
      pfeldman@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Removes the need for C++ Timeline types in InspectorTimelineAgent in favor
              of ScriptObjects.
              https://bugs.webkit.org/show_bug.cgi?id=30707
      
              * GNUmakefile.am:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * inspector/DOMDispatchTimelineItem.cpp: Removed.
              * inspector/DOMDispatchTimelineItem.h: Removed.
              * inspector/InspectorTimelineAgent.cpp:
              (WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
              (WebCore::InspectorTimelineAgent::willDispatchDOMEvent):
              (WebCore::InspectorTimelineAgent::didDispatchDOMEvent):
              (WebCore::InspectorTimelineAgent::willLayout):
              (WebCore::InspectorTimelineAgent::didLayout):
              (WebCore::InspectorTimelineAgent::willRecalculateStyle):
              (WebCore::InspectorTimelineAgent::didRecalculateStyle):
              (WebCore::InspectorTimelineAgent::willPaint):
              (WebCore::InspectorTimelineAgent::didPaint):
              (WebCore::InspectorTimelineAgent::willWriteHTML):
              (WebCore::InspectorTimelineAgent::didWriteHTML):
              (WebCore::InspectorTimelineAgent::reset):
              (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
              (WebCore::InspectorTimelineAgent::pushCurrentTimelineItem):
              * inspector/InspectorTimelineAgent.h:
              (WebCore::InspectorTimelineAgent::TimelineItemEntry::TimelineItemEntry):
              * inspector/TimelineItem.cpp: Removed.
              * inspector/TimelineItem.h: Removed.
              * inspector/TimelineItemFactory.cpp: Added.
              (WebCore::TimelineItemFactory::createGenericTimelineItem):
              (WebCore::TimelineItemFactory::createDOMDispatchTimelineItem):
              * inspector/TimelineItemFactory.h: Added.
              (WebCore::):
              (WebCore::TimelineItemFactory::TimelineItemFactory):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50013 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8cc4af0e
  3. 20 Oct, 2009 1 commit
    • eric@webkit.org's avatar
      2009-10-20 Eric Z. Ayers <zundel@google.com> · 161ca414
      eric@webkit.org authored
              Reviewed by Timothy Hatcher.
      
              Changes TimelineItems to be created with raw timestamps as opposed
              to a time relative to a start of session.  Normalized timestamps cause
              problems when monitoring a browsing session across multiple page
              transitions.
      
              * inspector/InspectorTimelineAgent.cpp:
              (WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
              (WebCore::InspectorTimelineAgent::willDispatchDOMEvent):
              (WebCore::InspectorTimelineAgent::willLayout):
              (WebCore::InspectorTimelineAgent::willRecalculateStyle):
              (WebCore::InspectorTimelineAgent::willPaint):
              (WebCore::InspectorTimelineAgent::willWriteHTML):
              (WebCore::InspectorTimelineAgent::reset):
              (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
              * inspector/InspectorTimelineAgent.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49898 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      161ca414
  4. 16 Sep, 2009 1 commit
    • bolsinga@apple.com's avatar
      Add ENABLE(INSPECTOR) · d19fa0b4
      bolsinga@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=29260
      
      Reviewed by David Kilzer.
      
      JavaScriptCore:
      
      * wtf/Platform.h:
      
      WebCore:
      
      No new tests. (No change in default behavior.)
      
      * DerivedSources.make: Use new WebCore.Inspector.exp file if ENABLE_DRAG_SUPPORT.
      * WebCore.base.exp: Move Inspector only exports to WebCore.Inspector.exp.
      * WebCore.xcodeproj/project.pbxproj: Add WebCore.Inspector.exp.
      * bindings/js/JSDOMWindowBase.cpp: Use ENABLE(INSPECTOR) where applicable.
      (WebCore::JSDOMWindowBase::supportsProfiling):
      * bindings/js/JSInspectedObjectWrapper.cpp: Wrap entire file in ENABLE(INSPECTOR).
      * bindings/js/JSInspectorBackendCustom.cpp: Ditto.
      * bindings/js/JSInspectorCallbackWrapper.cpp: Ditto.
      * bindings/js/ScriptObject.cpp: Use ENABLE(INSPECTOR) where applicable.
      * bindings/js/ScriptObject.h: Ditto.
      * bindings/js/ScriptObjectQuarantine.cpp: Wrap entire file in ENABLE(INSPECTOR).
      * dom/Document.cpp: Use ENABLE(INSPECTOR) where applicable.
      (WebCore::Document::recalcStyle):
      (WebCore::Document::addMessage):
      (WebCore::Document::resourceRetrievedByXMLHttpRequest):
      (WebCore::Document::scriptImported):
      * dom/Document.h: Ditto.
      * dom/Node.cpp: Ditto.
      (WebCore::Node::dispatchGenericEvent):
      * dom/ScriptExecutionContext.h: Ditto.
      (WebCore::):
      * html/HTMLDocument.cpp: Ditto.
      (WebCore::HTMLDocument::createTokenizer):
      * html/HTMLTokenizer.cpp: Ditto.
      (WebCore::HTMLTokenizer::write):
      * inspector/ConsoleMessage.cpp: Ditto.
      (WebCore::ConsoleMessage::ConsoleMessage):
      (WebCore::ConsoleMessage::isEqual):
      * inspector/ConsoleMessage.h: Ditto.
      * inspector/DOMDispatchTimelineItem.cpp: Wrap entire file in ENABLE(INSPECTOR).
      * inspector/InspectorBackend.cpp: Ditto.
      * inspector/InspectorController.cpp: Ditto.
      * inspector/InspectorDOMAgent.cpp: Ditto.
      * inspector/InspectorDOMStorageResource.cpp: Ditto.
      * inspector/InspectorDatabaseResource.cpp: Ditto.
      * inspector/InspectorFrontend.cpp: Ditto.
      * inspector/InspectorResource.cpp: Ditto.
      * inspector/InspectorTimelineAgent.cpp: Ditto.
      * inspector/TimelineItem.cpp: Ditto.
      * loader/FrameLoader.cpp: Use ENABLE(INSPECTOR) where applicable.
      (WebCore::FrameLoader::detachFromParent):
      (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
      (WebCore::FrameLoader::loadedResourceFromMemoryCache):
      (WebCore::FrameLoader::dispatchWindowObjectAvailable):
      (WebCore::FrameLoader::dispatchDidCommitLoad):
      (WebCore::FrameLoader::dispatchAssignIdentifierToInitialRequest):
      (WebCore::FrameLoader::dispatchWillSendRequest):
      (WebCore::FrameLoader::dispatchDidReceiveResponse):
      (WebCore::FrameLoader::dispatchDidReceiveContentLength):
      (WebCore::FrameLoader::dispatchDidFinishLoading):
      * page/Chrome.cpp: Ditto.
      (WebCore::Chrome::mouseDidMoveOverElement):
      * page/Console.cpp: Ditto.
      (WebCore::Console::addMessage):
      (WebCore::Console::count):
      (WebCore::Console::profile):
      (WebCore::Console::profileEnd):
      (WebCore::Console::time):
      (WebCore::Console::timeEnd):
      (WebCore::Console::group):
      (WebCore::Console::groupEnd):
      * page/ContextMenuController.cpp: Ditto.
      (WebCore::ContextMenuController::handleContextMenuEvent):
      (WebCore::ContextMenuController::contextMenuItemSelected):
      * page/DOMWindow.cpp: Ditto.
      (WebCore::DOMWindow::sessionStorage):
      (WebCore::DOMWindow::localStorage):
      * page/EventHandler.cpp: Ditto.
      (WebCore::EventHandler::handleMousePressEvent):
      * page/FrameView.cpp: Ditto.
      (WebCore::FrameView::layout):
      (WebCore::FrameView::paintContents):
      * page/FrameView.h: Ditto.
      * page/Page.cpp: Ditto.
      (WebCore::Page::Page):
      (WebCore::Page::~Page):
      * page/Page.h: Ditto.
      * platform/ContextMenu.cpp: Ditto.
      (WebCore::ContextMenu::checkOrEnableIfNeeded):
      * platform/ContextMenuItem.h: Ditto.
      (WebCore::):
      * storage/Database.cpp: Ditto.
      (WebCore::Database::openDatabase):
      * workers/WorkerContext.cpp: Ditto.
      (WebCore::WorkerContext::importScripts):
      * xml/XMLHttpRequest.cpp: Ditto.
      (WebCore::XMLHttpRequest::didFinishLoading):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d19fa0b4
  5. 08 Sep, 2009 1 commit
    • eric@webkit.org's avatar
      2009-09-08 Kelly Norton <knorton@google.com> · 80bd7d6d
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              WebInspector: Adds a timeline agent to InspectorController that collects
              high-level timing data about event dispatch, layout, painting and HTML
              parsing and makes it available to Inspector.
              https://bugs.webkit.org/show_bug.cgi?id=25503
      
              * WebCore.gypi:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/Document.cpp:
              (WebCore::Document::recalcStyle):
              * dom/Document.h:
              (WebCore::Document::inspectorTimelineAgent):
              * dom/Node.cpp:
              (WebCore::Node::dispatchGenericEvent):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::write):
              * inspector/DOMDispatchTimelineItem.cpp: Added.
              (WebCore::DOMDispatchTimelineItem::DOMDispatchTimelineItem):
              (WebCore::DOMDispatchTimelineItem::convertToScriptObject):
              * inspector/DOMDispatchTimelineItem.h: Added.
              (WebCore::DOMDispatchTimelineItem::~DOMDispatchTimelineItem):
              * inspector/InspectorBackend.cpp:
              (WebCore::InspectorBackend::enableTimeline):
              (WebCore::InspectorBackend::disableTimeline):
              (WebCore::InspectorBackend::timelineEnabled):
              * inspector/InspectorBackend.h:
              * inspector/InspectorBackend.idl:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::setFrontendProxyObject):
              (WebCore::InspectorController::close):
              (WebCore::InspectorController::resetScriptObjects):
              (WebCore::InspectorController::enableTimeline):
              (WebCore::InspectorController::disableTimeline):
              (WebCore::InspectorController::timelineEnabled):
              * inspector/InspectorController.h:
              (WebCore::InspectorController::timelineAgent):
              * inspector/InspectorFrontend.cpp:
              (WebCore::InspectorFrontend::timelineWasEnabled):
              (WebCore::InspectorFrontend::timelineWasDisabled):
              (WebCore::InspectorFrontend::addItemToTimeline):
              * inspector/InspectorFrontend.h:
              * inspector/InspectorTimelineAgent.cpp: Added.
              (WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
              (WebCore::InspectorTimelineAgent::~InspectorTimelineAgent):
              (WebCore::InspectorTimelineAgent::willDispatchDOMEvent):
              (WebCore::InspectorTimelineAgent::didDispatchDOMEvent):
              (WebCore::InspectorTimelineAgent::willLayout):
              (WebCore::InspectorTimelineAgent::didLayout):
              (WebCore::InspectorTimelineAgent::willRecalculateStyle):
              (WebCore::InspectorTimelineAgent::didRecalculateStyle):
              (WebCore::InspectorTimelineAgent::willPaint):
              (WebCore::InspectorTimelineAgent::didPaint):
              (WebCore::InspectorTimelineAgent::willWriteHTML):
              (WebCore::InspectorTimelineAgent::didWriteHTML):
              (WebCore::InspectorTimelineAgent::reset):
              (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
              (WebCore::InspectorTimelineAgent::currentTimeInMilliseconds):
              (WebCore::InspectorTimelineAgent::sessionTimeInMilliseconds):
              * inspector/InspectorTimelineAgent.h: Added.
              * inspector/TimelineItem.cpp: Added.
              (WebCore::TimelineItem::TimelineItem):
              (WebCore::TimelineItem::addToTimeline):
              (WebCore::TimelineItem::convertToScriptObject):
              (WebCore::TimelineItem::convertChildrenToScriptArray):
              (WebCore::TimelineItem::addChildItem):
              * inspector/TimelineItem.h: Added.
              (WebCore::):
              (WebCore::TimelineItem::~TimelineItem):
              (WebCore::TimelineItem::previous):
              (WebCore::TimelineItem::releasePrevious):
              (WebCore::TimelineItem::setEndTime):
              (WebCore::TimelineItem::type):
              * inspector/front-end/TimelineAgent.js: Added.
              (WebInspector.TimelineAgent):
              (WebInspector.addItemToTimeline):
              (WebInspector.timelineWasEnabled):
              (WebInspector.timelineWasDisabled):
              * inspector/front-end/inspector.html:
              * page/FrameView.cpp:
              (WebCore::FrameView::layout):
              (WebCore::FrameView::paintContents):
              * page/FrameView.h:
              (WebCore::FrameView::inspectorTimelineAgent):
              * page/Page.cpp:
              (WebCore::Page::inspectorTimelineAgent):
              * page/Page.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48167 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      80bd7d6d