WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
113410
Web Inspector: Flame Chart. Developers will have more clue if two different profiles will have same colors for same functions.
https://bugs.webkit.org/show_bug.cgi?id=113410
Summary
Web Inspector: Flame Chart. Developers will have more clue if two different p...
Ilya Tikhonovsky
Reported
2013-03-27 08:26:26 PDT
scenario: developer made CPUProfile on a page. developer fixed the problem developer made another CPUProfile developer has to see the difference but he might be confused by the different colors associated with the same function in the different profiles.
Attachments
Patch
(6.14 KB, patch)
2013-03-27 08:31 PDT
,
Ilya Tikhonovsky
no flags
Details
Formatted Diff
Diff
Patch
(8.06 KB, patch)
2013-03-28 06:14 PDT
,
Ilya Tikhonovsky
no flags
Details
Formatted Diff
Diff
screenshot
(129.27 KB, image/png)
2013-03-28 06:20 PDT
,
Ilya Tikhonovsky
no flags
Details
Patch
(6.08 KB, patch)
2013-03-29 05:37 PDT
,
Ilya Tikhonovsky
no flags
Details
Formatted Diff
Diff
Patch
(5.98 KB, patch)
2013-03-29 05:55 PDT
,
Ilya Tikhonovsky
pfeldman
: review+
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Ilya Tikhonovsky
Comment 1
2013-03-27 08:31:18 PDT
Created
attachment 195331
[details]
Patch
Build Bot
Comment 2
2013-03-27 13:59:15 PDT
Comment on
attachment 195331
[details]
Patch
Attachment 195331
[details]
did not pass win-ews (win): Output:
http://webkit-commit-queue.appspot.com/results/17294365
Pavel Feldman
Comment 3
2013-03-28 04:55:54 PDT
Comment on
attachment 195331
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=195331&action=review
> Source/WebCore/inspector/front-end/FlameChart.js:74 > + var profilesPanel = WebInspector.panels["profiles"];
FlameChart should not depend on the panel.
> Source/WebCore/inspector/front-end/FlameChart.js:77 > + this._colorGenerator = profilesPanel.colorGenerator = new WebInspector.FlameChart.ColorGenerator();
A statement per line please.
Ilya Tikhonovsky
Comment 4
2013-03-28 06:14:45 PDT
Created
attachment 195549
[details]
Patch
Ilya Tikhonovsky
Comment 5
2013-03-28 06:15:41 PDT
(In reply to
comment #3
)
> (From update of
attachment 195331
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=195331&action=review
> > > Source/WebCore/inspector/front-end/FlameChart.js:74 > > + var profilesPanel = WebInspector.panels["profiles"]; > > FlameChart should not depend on the panel.
done
> > > Source/WebCore/inspector/front-end/FlameChart.js:77 > > + this._colorGenerator = profilesPanel.colorGenerator = new WebInspector.FlameChart.ColorGenerator(); > > A statement per line please.
done
Ilya Tikhonovsky
Comment 6
2013-03-28 06:20:24 PDT
Created
attachment 195551
[details]
screenshot
Pavel Feldman
Comment 7
2013-03-29 05:12:05 PDT
Comment on
attachment 195549
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=195549&action=review
> Source/WebCore/inspector/front-end/FlameChart.js:75 > + this._colorGenerator = panel.colorGenerator;
You can't declare properties on alien objects, just make it static! I.e. if (!WebInspector.FlameChart._colorGenerator)
Ilya Tikhonovsky
Comment 8
2013-03-29 05:37:32 PDT
Created
attachment 195729
[details]
Patch
Pavel Feldman
Comment 9
2013-03-29 05:44:43 PDT
Comment on
attachment 195729
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=195729&action=review
> Source/WebCore/inspector/front-end/FlameChart.js:74 > + this._colorGenerator = WebInspector.FlameChart._colorGenerator;
Why do you need local field?
> Source/WebCore/inspector/front-end/FlameChart.js:289 > + var colorGenerator = this._colorGenerator;
Why do you need this variable?
> Source/WebCore/inspector/front-end/FlameChart.js:348 > + var colorGenerator = this._colorGenerator;
ditto
Ilya Tikhonovsky
Comment 10
2013-03-29 05:48:29 PDT
Comment on
attachment 195729
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=195729&action=review
>> Source/WebCore/inspector/front-end/FlameChart.js:289 >> + var colorGenerator = this._colorGenerator; > > Why do you need this variable?
I don't like to access to member field in a cycle which runs huge number of times because usually it reduces performance.
Ilya Tikhonovsky
Comment 11
2013-03-29 05:55:08 PDT
Created
attachment 195731
[details]
Patch
Ilya Tikhonovsky
Comment 12
2013-03-29 06:55:21 PDT
Committed
r147213
: <
http://trac.webkit.org/changeset/147213
>
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