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

Issue 2204563003: Converted Observatory cpu-profile element (Closed)

Created:
4 years, 4 months ago by cbernaschina
Modified:
4 years, 4 months ago
Reviewers:
turnidge, rmacnak, Cutch
CC:
reviews_dartlang.org, turnidge, rmacnak, Cutch, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Added missing queue injection #

Patch Set 3 : Removed tmp files #

Total comments: 20

Patch Set 4 : Refactoring #

Total comments: 10

Patch Set 5 : Converted enum keys to lowerCamelCase #

Patch Set 6 : Converted enum keys to lowerCamelCase #

Patch Set 7 : Merged with master #

Patch Set 8 : Added SampleBufferControlElement tests #

Patch Set 9 : Using buttons for interactive components #

Patch Set 10 : Added StackTraceTreeConfigElement tests #

Patch Set 11 : Added event fire tests #

Patch Set 12 : Added CpuProfileVirtualTreeElement initial tests #

Patch Set 13 : merging patch #

Patch Set 14 : Added missing file to observatory_sources.gypi #

Patch Set 15 : Added lifecycle tests #

Total comments: 26

Patch Set 16 : Fixed coding style #

Patch Set 17 : Addressed comments #

Patch Set 18 : Merged with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2310 lines, -3320 lines) Patch
M runtime/observatory/lib/app.dart View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M runtime/observatory/lib/cpu_profile.dart View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/lib/elements.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +15 lines, -1 line 0 comments Download
M runtime/observatory/lib/elements.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/models.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/observatory/lib/repositories.dart View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/app/page.dart View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +34 lines, -17 lines 0 comments Download
M runtime/observatory/lib/src/app/view_model.dart View 1 chunk +0 lines, -383 lines 0 comments Download
M runtime/observatory/lib/src/cpu_profile/cpu_profile.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 12 chunks +107 lines, -61 lines 0 comments Download
M runtime/observatory/lib/src/elements/class_tree.dart View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/class_view.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +46 lines, -44 lines 0 comments Download
M runtime/observatory/lib/src/elements/class_view.html View 1 2 3 4 5 2 chunks +3 lines, -8 lines 0 comments Download
M runtime/observatory/lib/src/elements/cpu_profile.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +150 lines, -1553 lines 0 comments Download
D runtime/observatory/lib/src/elements/cpu_profile.html View 1 chunk +0 lines, -515 lines 0 comments Download
A runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +179 lines, -0 lines 0 comments Download
A + runtime/observatory/lib/src/elements/cpu_profile_table.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 9 chunks +51 lines, -698 lines 0 comments Download
A runtime/observatory/lib/src/elements/cpu_profile_table.html View 1 chunk +218 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/elements/css/shared.css View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +103 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/elements/helpers/rendering_scheduler.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/helpers/uris.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +17 lines, -15 lines 0 comments Download
A runtime/observatory/lib/src/elements/sample_buffer_control.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +232 lines, -0 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/stack_trace_tree_config.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +228 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/models/objects/error.dart View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
A runtime/observatory/lib/src/models/objects/sample_profile.dart View 1 2 3 1 chunk +64 lines, -0 lines 0 comments Download
A runtime/observatory/lib/src/models/repositories/sample_profile.dart View 1 2 3 4 5 6 7 1 chunk +52 lines, -0 lines 0 comments Download
A runtime/observatory/lib/src/repositories/sample_profile.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +137 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/service/object.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -4 lines 0 comments Download
M runtime/observatory/lib/utils.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/observatory/observatory_sources.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +8 lines, -1 line 0 comments Download
M runtime/observatory/tests/observatory_ui/class_ref/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -5 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/class_tree/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/code_ref/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
A runtime/observatory/tests/observatory_ui/cpu_profile/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +80 lines, -0 lines 0 comments Download
A + runtime/observatory/tests/observatory_ui/cpu_profile/element_test.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 chunks +-1 lines, --1 lines 0 comments Download
A runtime/observatory/tests/observatory_ui/cpu_profile/virtual-tree/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +53 lines, -0 lines 0 comments Download
A + runtime/observatory/tests/observatory_ui/cpu_profile/virtual-tree/element_test.html View 1 2 3 4 5 6 7 8 9 10 11 0 chunks +-1 lines, --1 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/curly_block/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/error_ref/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/flag_list/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/function_ref/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M runtime/observatory/tests/observatory_ui/general_error/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/isolate/counter_chart/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/isolate/isolate-shared-summary/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/isolate_reconnect/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M runtime/observatory/tests/observatory_ui/isolate_ref/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M runtime/observatory/tests/observatory_ui/library_ref/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M runtime/observatory/tests/observatory_ui/mocks.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -0 lines 0 comments Download
A runtime/observatory/tests/observatory_ui/mocks/objects/sample_profile.dart View 1 2 3 4 5 6 7 1 chunk +41 lines, -0 lines 0 comments Download
A runtime/observatory/tests/observatory_ui/mocks/repositories/sample_profile.dart View 1 2 3 4 5 6 7 1 chunk +70 lines, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/nav/bar/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/nav/class-menu/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M runtime/observatory/tests/observatory_ui/nav/isolate-menu/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M runtime/observatory/tests/observatory_ui/nav/library-menu/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M runtime/observatory/tests/observatory_ui/nav/menu-item/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/nav/menu/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/nav/notify/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/nav/notify_event/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/nav/notify_exception/connection_exception_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/nav/notify_exception/exception_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/nav/refresh/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/nav/top-menu/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/nav/vm_menu/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
A runtime/observatory/tests/observatory_ui/sample_buffer_control/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +172 lines, -0 lines 0 comments Download
A + runtime/observatory/tests/observatory_ui/sample_buffer_control/element_test.html View 1 2 3 4 5 6 7 0 chunks +-1 lines, --1 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/script_ref/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/source_link/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
A runtime/observatory/tests/observatory_ui/stack_trace_tree_config/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +185 lines, -0 lines 0 comments Download
A + runtime/observatory/tests/observatory_ui/stack_trace_tree_config/element_test.html View 1 2 3 4 5 6 7 8 9 0 chunks +-1 lines, --1 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/view_footer/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/vm_connect/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/vm_connect_target/element_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/tests/service/get_allocation_samples_test.dart View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
cbernaschina
4 years, 4 months ago (2016-08-02 01:18:38 UTC) #2
cbernaschina
4 years, 4 months ago (2016-08-02 02:43:21 UTC) #4
cbernaschina
4 years, 4 months ago (2016-08-02 02:45:03 UTC) #5
Cutch
some initial comments https://codereview.chromium.org/2204563003/diff/40001/runtime/observatory/lib/src/app/page.dart File runtime/observatory/lib/src/app/page.dart (right): https://codereview.chromium.org/2204563003/diff/40001/runtime/observatory/lib/src/app/page.dart#newcode53 runtime/observatory/lib/src/app/page.dart:53: /// A [SimplePage] matches a single ...
4 years, 4 months ago (2016-08-02 15:52:20 UTC) #6
cbernaschina
https://codereview.chromium.org/2204563003/diff/40001/runtime/observatory/lib/src/app/page.dart File runtime/observatory/lib/src/app/page.dart (right): https://codereview.chromium.org/2204563003/diff/40001/runtime/observatory/lib/src/app/page.dart#newcode53 runtime/observatory/lib/src/app/page.dart:53: /// A [SimplePage] matches a single uri path and ...
4 years, 4 months ago (2016-08-02 17:40:25 UTC) #7
Cutch
https://codereview.chromium.org/2204563003/diff/60001/runtime/observatory/lib/src/cpu_profile/cpu_profile.dart File runtime/observatory/lib/src/cpu_profile/cpu_profile.dart (right): https://codereview.chromium.org/2204563003/diff/60001/runtime/observatory/lib/src/cpu_profile/cpu_profile.dart#newcode647 runtime/observatory/lib/src/cpu_profile/cpu_profile.dart:647: static const double MICROSECONDS_PER_SECOND = 1000000.0; Please switch this ...
4 years, 4 months ago (2016-08-04 15:35:52 UTC) #9
cbernaschina
https://codereview.chromium.org/2204563003/diff/60001/runtime/observatory/lib/src/cpu_profile/cpu_profile.dart File runtime/observatory/lib/src/cpu_profile/cpu_profile.dart (right): https://codereview.chromium.org/2204563003/diff/60001/runtime/observatory/lib/src/cpu_profile/cpu_profile.dart#newcode647 runtime/observatory/lib/src/cpu_profile/cpu_profile.dart:647: static const double MICROSECONDS_PER_SECOND = 1000000.0; On 2016/08/04 15:35:52, ...
4 years, 4 months ago (2016-08-04 19:45:08 UTC) #10
cbernaschina
4 years, 4 months ago (2016-08-05 20:58:17 UTC) #11
cbernaschina
4 years, 4 months ago (2016-08-08 18:01:45 UTC) #12
cbernaschina
4 years, 4 months ago (2016-08-08 22:44:40 UTC) #13
cbernaschina
4 years, 4 months ago (2016-08-09 17:51:37 UTC) #14
Cutch
LGTM but Ryan should review this one too. https://codereview.chromium.org/2204563003/diff/280001/runtime/observatory/lib/src/cpu_profile/cpu_profile.dart File runtime/observatory/lib/src/cpu_profile/cpu_profile.dart (right): https://codereview.chromium.org/2204563003/diff/280001/runtime/observatory/lib/src/cpu_profile/cpu_profile.dart#newcode734 runtime/observatory/lib/src/cpu_profile/cpu_profile.dart:734: if ...
4 years, 4 months ago (2016-08-09 20:21:53 UTC) #16
cbernaschina
https://codereview.chromium.org/2204563003/diff/280001/runtime/observatory/lib/src/cpu_profile/cpu_profile.dart File runtime/observatory/lib/src/cpu_profile/cpu_profile.dart (right): https://codereview.chromium.org/2204563003/diff/280001/runtime/observatory/lib/src/cpu_profile/cpu_profile.dart#newcode734 runtime/observatory/lib/src/cpu_profile/cpu_profile.dart:734: if (count % 256 == 0 && watch.elapsedMilliseconds > ...
4 years, 4 months ago (2016-08-09 20:29:39 UTC) #17
rmacnak
lgtm w/c https://codereview.chromium.org/2204563003/diff/280001/runtime/observatory/lib/src/elements/class_view.dart File runtime/observatory/lib/src/elements/class_view.dart (right): https://codereview.chromium.org/2204563003/diff/280001/runtime/observatory/lib/src/elements/class_view.dart#newcode76 runtime/observatory/lib/src/elements/class_view.dart:76: loads.add(await cls.reload()); List constructed but not used. ...
4 years, 4 months ago (2016-08-09 20:51:07 UTC) #18
cbernaschina
https://codereview.chromium.org/2204563003/diff/280001/runtime/observatory/lib/src/elements/class_view.dart File runtime/observatory/lib/src/elements/class_view.dart (right): https://codereview.chromium.org/2204563003/diff/280001/runtime/observatory/lib/src/elements/class_view.dart#newcode76 runtime/observatory/lib/src/elements/class_view.dart:76: loads.add(await cls.reload()); On 2016/08/09 20:51:06, rmacnak wrote: > List ...
4 years, 4 months ago (2016-08-09 21:16:55 UTC) #19
cbernaschina
4 years, 4 months ago (2016-08-09 21:23:22 UTC) #20
cbernaschina
4 years, 4 months ago (2016-08-09 21:34:12 UTC) #22
Message was sent while issue was closed.
Committed patchset #18 (id:340001) manually as
9ce171ac336c36283005c37ffd2aa096ae58bc24 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698