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

Issue 2294073003: Converted Observatory class-view element (Closed)

Created:
4 years, 3 months ago by cbernaschina
Modified:
4 years, 3 months ago
Reviewers:
turnidge, rmacnak, Cutch
CC:
reviews_dartlang.org, turnidge, rmacnak, Cutch, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Addessing optional missing fields #

Total comments: 8

Patch Set 3 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1109 lines, -495 lines) Patch
M runtime/observatory/lib/elements.dart View 7 chunks +12 lines, -1 line 0 comments Download
M runtime/observatory/lib/elements.html View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/observatory/lib/models.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/observatory/lib/repositories.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/app/page.dart View 3 chunks +24 lines, -1 line 0 comments Download
A runtime/observatory/lib/src/elements/class_allocation_profile.dart View 1 chunk +115 lines, -0 lines 0 comments Download
A + runtime/observatory/lib/src/elements/class_instances.dart View 1 2 6 chunks +47 lines, -58 lines 0 comments Download
M runtime/observatory/lib/src/elements/class_view.dart View 1 2 1 chunk +440 lines, -96 lines 0 comments Download
D runtime/observatory/lib/src/elements/class_view.html View 1 chunk +0 lines, -273 lines 0 comments Download
M runtime/observatory/lib/src/elements/css/shared.css View 1 chunk +3 lines, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/service_view.dart View 1 chunk +0 lines, -4 lines 0 comments Download
M runtime/observatory/lib/src/elements/service_view.html View 1 chunk +0 lines, -1 line 0 comments Download
A runtime/observatory/lib/src/elements/strongly_reachable_instances.dart View 1 chunk +126 lines, -0 lines 0 comments Download
A runtime/observatory/lib/src/elements/top_retaining_instances.dart View 1 2 1 chunk +112 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/models/objects/allocation_profile.dart View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/observatory/lib/src/models/objects/class.dart View 1 2 chunks +24 lines, -8 lines 0 comments Download
M runtime/observatory/lib/src/models/objects/function.dart View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/observatory/lib/src/models/objects/object.dart View 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/models/repositories/sample_profile.dart View 1 chunk +5 lines, -3 lines 0 comments Download
A + runtime/observatory/lib/src/models/repositories/strongly_reachable_instances.dart View 1 chunk +2 lines, -2 lines 0 comments Download
A + runtime/observatory/lib/src/models/repositories/top_retaining_instances.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/observatory/lib/src/repositories/sample_profile.dart View 1 chunk +18 lines, -4 lines 0 comments Download
A runtime/observatory/lib/src/repositories/strongly_reachable_instances.dart View 1 chunk +19 lines, -0 lines 0 comments Download
A runtime/observatory/lib/src/repositories/top_retaining_instances.dart View 1 chunk +22 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/service/object.dart View 8 chunks +33 lines, -2 lines 0 comments Download
M runtime/observatory/observatory_sources.gypi View 4 chunks +8 lines, -1 line 0 comments Download
M runtime/observatory/tests/observatory_ui/mocks/objects/class.dart View 2 chunks +16 lines, -5 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/mocks/objects/code.dart View 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/mocks/objects/context.dart View 1 chunk +4 lines, -3 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/mocks/objects/error.dart View 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/mocks/objects/icdata.dart View 1 chunk +5 lines, -3 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/mocks/objects/instance.dart View 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/mocks/objects/library.dart View 1 chunk +6 lines, -6 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/mocks/objects/megamorphiccache.dart View 2 chunks +8 lines, -3 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/mocks/objects/objectpool.dart View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/observatory/tests/observatory_ui/mocks/objects/script.dart View 2 chunks +7 lines, -4 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/mocks/repositories/sample_profile.dart View 1 chunk +28 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
cbernaschina
4 years, 3 months ago (2016-08-31 03:31:59 UTC) #2
rmacnak
I get pages missing data if I visit internal classes (Function, Class, etc).
4 years, 3 months ago (2016-08-31 18:21:11 UTC) #3
cbernaschina
4 years, 3 months ago (2016-08-31 19:27:50 UTC) #4
rmacnak
lgtm https://chromiumcodereview.appspot.com/2294073003/diff/20001/runtime/observatory/lib/src/elements/class_instances.dart File runtime/observatory/lib/src/elements/class_instances.dart (right): https://chromiumcodereview.appspot.com/2294073003/diff/20001/runtime/observatory/lib/src/elements/class_instances.dart#newcode95 runtime/observatory/lib/src/elements/class_instances.dart:95: final instanceNumber = _cls.newSpace.current.instances + instanceCount https://chromiumcodereview.appspot.com/2294073003/diff/20001/runtime/observatory/lib/src/elements/class_view.dart File ...
4 years, 3 months ago (2016-08-31 23:51:39 UTC) #5
cbernaschina
Committed patchset #3 (id:40001) manually as 1341e94321694d7d5a3570c9cee6a95c87612d9c (presubmit successful).
4 years, 3 months ago (2016-09-01 00:03:46 UTC) #7
cbernaschina
4 years, 3 months ago (2016-09-01 00:04:08 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/2294073003/diff/20001/runtime/observatory/lib...
File runtime/observatory/lib/src/elements/class_instances.dart (right):

https://codereview.chromium.org/2294073003/diff/20001/runtime/observatory/lib...
runtime/observatory/lib/src/elements/class_instances.dart:95: final
instanceNumber = _cls.newSpace.current.instances +
On 2016/08/31 23:51:39, rmacnak wrote:
> instanceCount

Done.

https://codereview.chromium.org/2294073003/diff/20001/runtime/observatory/lib...
File runtime/observatory/lib/src/elements/class_view.dart (right):

https://codereview.chromium.org/2294073003/diff/20001/runtime/observatory/lib...
runtime/observatory/lib/src/elements/class_view.dart:180: if (_cls.mixin !=
null) {
On 2016/08/31 23:51:39, rmacnak wrote:
> I'd remove this. If class's mixin isn't null, that makes it a mixin
application,
> not a mixin.

Done.

https://codereview.chromium.org/2294073003/diff/20001/runtime/observatory/lib...
runtime/observatory/lib/src/elements/class_view.dart:372: members.add(
On 2016/08/31 23:51:39, rmacnak wrote:
> This pattern seems to get repeated a lot in many of the views.  Maybe in
another
> CL, create a helper like
> 
> Element createMemberList(String title, List<Element> members) {
>   return new DivElement()..classes = ['memberItem']
>            ..children = [
>              new DivElement()..classes = ['memberName']
>                ..text = title,
>              new DivElement()..classes = ['memberValue']
>                ..children = members;
>             ]
>       );
> }
> 

Acknowledged.

https://codereview.chromium.org/2294073003/diff/20001/runtime/observatory/lib...
File runtime/observatory/lib/src/elements/top_retaining_instances.dart (right):

https://codereview.chromium.org/2294073003/diff/20001/runtime/observatory/lib...
runtime/observatory/lib/src/elements/top_retaining_instances.dart:100: new
SpanElement()..text = '${Utils.formatSize(r.retainedSize)} ',
On 2016/08/31 23:51:39, rmacnak wrote:
> non-breaking space

Done.

Powered by Google App Engine
This is Rietveld 408576698