Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(621)

Issue 8574051: Truncate the number of rows displayed on about:profiler. (Closed)

Created:
9 years, 1 month ago by eroman
Modified:
9 years, 1 month ago
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Truncate the number of rows displayed on about:profiler. Rather than displaying the full table of data (which can be quite large), we instead display only 30 (when ungrouped), or just 10 when grouped. This speeds up the rendering of the page since a much smaller number of rows need to be drawn. It also helps reduce the clutter when grouping. The hidden rows can be displayed with the click of a button. BUG=100992 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110545

Patch Set 1 #

Patch Set 2 : sync #

Patch Set 3 : dont include showless button when it has same effect as shownone #

Total comments: 8

Patch Set 4 : re-upload to make sure no changes... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -9 lines) Patch
M chrome/browser/resources/profiler.html View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/resources/profiler.js View 1 2 7 chunks +120 lines, -9 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
eroman
9 years, 1 month ago (2011-11-17 07:11:59 UTC) #1
jar (doing other things)
LGTM. I'll be super glad to see this feature land too! ;-) Comments below that ...
9 years, 1 month ago (2011-11-17 14:18:40 UTC) #2
eroman
9 years, 1 month ago (2011-11-17 19:06:51 UTC) #3
thanks for the review!

http://codereview.chromium.org/8574051/diff/1003/chrome/browser/resources/pro...
File chrome/browser/resources/profiler.js (right):

http://codereview.chromium.org/8574051/diff/1003/chrome/browser/resources/pro...
chrome/browser/resources/profiler.js:554: var INITIAL_GROUP_ROW_LIMIT = 10;
On 2011/11/17 14:18:40, jar wrote:
> I'm suspicious that this should be lower.  IMO, it may well be zero.  This
will
> allow you to get to the grouped item you care about, and then expand only
those
> items.
> 
> Especially problematic is the case where they group (for example) on function
> name etc.  You'll se that the groups are so plentiful, and so short, that
you'll
> lose your perf gain :-(.

It should be easy to change these policies as we play around with it. I'll leave
it as-is for now, we can update later.

http://codereview.chromium.org/8574051/diff/1003/chrome/browser/resources/pro...
chrome/browser/resources/profiler.js:919: showNoneHandler);
On 2011/11/17 14:18:40, jar wrote:
> nit: Not critical to this CL: Sometimes when I see this many args, I start to
> think about passing a class with members. 

I fully agree, the arguments here are getting unwiedly.

I'll send a follow-up CL to fix this (I don't want to do it in this CL since all
the code moves will be confusing).

http://codereview.chromium.org/8574051/diff/1003/chrome/browser/resources/pro...
chrome/browser/resources/profiler.js:1397:
this.changeGroupDisplayLimit_.bind(this, k, -Infinity));
On 2011/11/17 14:18:40, jar wrote:
> As used here... the arguments are real clear... but still the correctness of
the
> order is hard to see with unnamed args that are this plentiful.

I will fix this in a followup.

Powered by Google App Engine
This is Rietveld 408576698