2010-04-06 Ilya Tikhonovsky <loislo@chromium.org>
authorloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Apr 2010 14:44:25 +0000 (14:44 +0000)
committerloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Apr 2010 14:44:25 +0000 (14:44 +0000)
commitad36d2a4ffc44f8b0f8a695c17213e7f15fad06b
tree46e9f14a2fb3dae92759a420981bf3e17c34713e
parent01c26afa917c2d39d490126d2ce664726a5448cf
2010-04-06  Ilya Tikhonovsky  <loislo@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: The JS code can be not optimal from memory usage point of view.
        As example it can generate a lot of temp objects and GC will spend significant time to collect these objects.
        GC event will show us these moments. Also each event can show us how much memory is in use.
        https://bugs.webkit.org/show_bug.cgi?id=37025

        * WebCore.gypi:
        * WebCore.pro:
        * inspector/InspectorTimelineAgent.cpp:
        (WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
        (WebCore::InspectorTimelineAgent::pushGCEventRecords):
        (WebCore::InspectorTimelineAgent::didGC):
        (WebCore::InspectorTimelineAgent::~InspectorTimelineAgent):
        (WebCore::InspectorTimelineAgent::didInstallTimer):
        (WebCore::InspectorTimelineAgent::didRemoveTimer):
        (WebCore::InspectorTimelineAgent::willSendResourceRequest):
        (WebCore::InspectorTimelineAgent::didFinishLoadingResource):
        (WebCore::InspectorTimelineAgent::didMarkTimeline):
        (WebCore::InspectorTimelineAgent::addRecordToTimeline):
        (WebCore::InspectorTimelineAgent::setHeapSizeStatistic):
        (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
        (WebCore::InspectorTimelineAgent::pushCurrentRecord):
        * inspector/InspectorTimelineAgent.h:
        (WebCore::):
        (WebCore::InspectorTimelineAgent::instanceCount):
        (WebCore::InspectorTimelineAgent::TimelineRecordEntry::TimelineRecordEntry):
        (WebCore::InspectorTimelineAgent::GCEvent::GCEvent):
        * inspector/TimelineRecordFactory.cpp:
        (WebCore::TimelineRecordFactory::createGCEventData):
        * inspector/TimelineRecordFactory.h:
        * inspector/front-end/Popover.js:
        (WebInspector.PopoverHelper.prototype._mouseHover):
        * inspector/front-end/TimelineAgent.js:
        * inspector/front-end/TimelinePanel.js:
        (WebInspector.TimelinePanel.prototype.get _recordStyles):
        (WebInspector.TimelinePanel.FormattedRecord):
        (WebInspector.TimelinePanel.FormattedRecord.prototype._generatePopupContent):
        (WebInspector.TimelinePanel.FormattedRecord.prototype._getRecordDetails):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@57150 268f45cc-cd09-0410-ab3c-d52691b4dbfc
28 files changed:
LayoutTests/ChangeLog
LayoutTests/inspector/timeline-enum-stability-expected.txt
LayoutTests/inspector/timeline-event-dispatch-expected.txt
LayoutTests/inspector/timeline-layout-expected.txt
LayoutTests/inspector/timeline-mark-timeline-expected.txt
LayoutTests/inspector/timeline-network-resource-expected.txt
LayoutTests/inspector/timeline-paint-expected.txt
LayoutTests/inspector/timeline-parse-html-expected.txt
LayoutTests/inspector/timeline-recalculate-styles-expected.txt
LayoutTests/inspector/timeline-script-tag-1-expected.txt
LayoutTests/inspector/timeline-script-tag-2-expected.txt
LayoutTests/inspector/timeline-test.js
LayoutTests/platform/chromium-win/inspector/timeline-event-dispatch-expected.txt
LayoutTests/platform/chromium-win/inspector/timeline-mark-timeline-expected.txt
LayoutTests/platform/chromium-win/inspector/timeline-network-resource-expected.txt
LayoutTests/platform/chromium-win/inspector/timeline-paint-expected.txt
LayoutTests/platform/chromium-win/inspector/timeline-parse-html-expected.txt
WebCore/ChangeLog
WebCore/English.lproj/localizedStrings.js
WebCore/WebCore.gypi
WebCore/WebCore.pro
WebCore/inspector/InspectorTimelineAgent.cpp
WebCore/inspector/InspectorTimelineAgent.h
WebCore/inspector/TimelineRecordFactory.cpp
WebCore/inspector/TimelineRecordFactory.h
WebCore/inspector/front-end/Popover.js
WebCore/inspector/front-end/TimelineAgent.js
WebCore/inspector/front-end/TimelinePanel.js