WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 81909
Web Inspector: only update Timeline overview when really needed
https://bugs.webkit.org/show_bug.cgi?id=81909
Summary
Web Inspector: only update Timeline overview when really needed
Andrey Kosyakov
Reported
2012-03-22 07:41:32 PDT
Currently, we update timeline overview upon any refresh of the lower pane. This really needs to be done only when we have new events, or displayed categories change.
Attachments
Patch
(2.26 KB, patch)
2012-03-22 07:42 PDT
,
Andrey Kosyakov
no flags
Details
Formatted Diff
Diff
Patch
(47.65 KB, patch)
2012-03-28 07:54 PDT
,
Andrey Kosyakov
no flags
Details
Formatted Diff
Diff
Patch
(47.37 KB, patch)
2012-03-28 09:01 PDT
,
Andrey Kosyakov
no flags
Details
Formatted Diff
Diff
Patch
(47.36 KB, patch)
2012-03-28 09:46 PDT
,
Andrey Kosyakov
pfeldman
: review+
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Andrey Kosyakov
Comment 1
2012-03-22 07:42:58 PDT
Created
attachment 133262
[details]
Patch
Pavel Feldman
Comment 2
2012-03-25 23:18:11 PDT
Comment on
attachment 133262
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=133262&action=review
> Source/WebCore/inspector/front-end/TimelinePanel.js:562 > + if (this._needOverviewUpdate) {
What about onRecordsCleared? why would we end up here with this._needOverviewUpdate === false anyways?
Andrey Kosyakov
Comment 3
2012-03-28 07:54:53 PDT
Created
attachment 134295
[details]
Patch
Pavel Feldman
Comment 4
2012-03-28 08:06:13 PDT
Comment on
attachment 134295
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=134295&action=review
A bunch of nits.
> Source/WebCore/ChangeLog:6 > + - do not use formatted records and TimelinePresentationModel in Overview;
It sounds like you are doing more than one thing in this change. Please consider splitting it into parts.
> Source/WebCore/inspector/front-end/TimelineModel.js:88 > +WebInspector.TimelineModel.getStartTime = function(record)
No get prefix in WebKit functions.
> Source/WebCore/inspector/front-end/TimelineModel.js:90 > + return record.startTime / 1000;
I think we should operate original units on the model level.
> Source/WebCore/inspector/front-end/TimelineOverviewPane.js:102 > + var categories = WebInspector.TimelinePresentationModel.getCategories();
categories()
> Source/WebCore/inspector/front-end/TimelineOverviewPane.js:155 > + this._heapGraph.setSize(this._overviewGrid.element.offsetWidth, 60);
Please extract constant.
> Source/WebCore/inspector/front-end/TimelinePresentationModel.js:60 > +WebInspector.TimelinePresentationModel.getRecordStyle = function(record) {
recordStyle.
Andrey Kosyakov
Comment 5
2012-03-28 09:01:59 PDT
Created
attachment 134306
[details]
Patch
Andrey Kosyakov
Comment 6
2012-03-28 09:06:55 PDT
(In reply to
comment #4
)
> (From update of
attachment 134295
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=134295&action=review
> > A bunch of nits. > > > Source/WebCore/ChangeLog:6 > > + - do not use formatted records and TimelinePresentationModel in Overview; > > It sounds like you are doing more than one thing in this change. Please consider splitting it into parts.
Well, these changes are actually quite interconnected, separating them would appear artificial to me. Changed wording of the ChangeLog instead.
> No get prefix in WebKit functions.
Fixed.
> > Source/WebCore/inspector/front-end/TimelineModel.js:90 > > + return record.startTime / 1000; > > I think we should operate original units on the model level.
The model does operate original unit, we just provide this as a helper for higher-level code -- presentation model and overview should use same units, as they pass times back and forth. We could change PresentationModel to use original units as well, but I'd prefer this to be a separate change.
> categories()
Fixed.
> > Source/WebCore/inspector/front-end/TimelineOverviewPane.js:155 > > + this._heapGraph.setSize(this._overviewGrid.element.offsetWidth, 60); > > Please extract constant.
This was a drive by fix, I got rid of the method and the constant in
bug 82471
.
> > Source/WebCore/inspector/front-end/TimelinePresentationModel.js:60 > > +WebInspector.TimelinePresentationModel.getRecordStyle = function(record) { > > recordStyle.
Fixed.
Andrey Kosyakov
Comment 7
2012-03-28 09:46:48 PDT
Created
attachment 134318
[details]
Patch
Pavel Feldman
Comment 8
2012-03-28 09:57:09 PDT
Comment on
attachment 134318
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=134318&action=review
> Source/WebCore/inspector/front-end/TimelineModel.js:88 > +WebInspector.TimelineModel.startTime = function(record)
startTimeInSeconds ?
Andrey Kosyakov
Comment 9
2012-03-28 10:17:26 PDT
Committed
r112409
: <
http://trac.webkit.org/changeset/112409
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug