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

Issue 2989093002: [vm] Don't enable the profiler by default. Enable the profiler at startup with --observe, or later … (Closed)

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

Description

[vm] Don't enable the profiler by default. Enable the profiler at startup with --observe, or later through Observatory. Note there is no option to disable the profiler. The profiler on Mac, Linux, and Android is based on SIGPROF, and there is no way to wait for all the outstanding signals as required to be able to safely free the sample buffer. Saves ~20MB on 64-bit VMs. R=cbernaschina@google.com, zra@google.com Committed: https://github.com/dart-lang/sdk/commit/cc08f2ddd87d7a5c692b48b2e8dd629addf4d827

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 16

Patch Set 4 : . #

Total comments: 2

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -94 lines) Patch
M runtime/bin/main.cc View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/lib/src/elements/class_allocation_profile.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/observatory/lib/src/elements/cpu_profile.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart View 1 2 3 4 1 chunk +8 lines, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/cpu_profile_table.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/native_memory_profiler.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/observatory/lib/src/elements/sample_buffer_control.dart View 1 5 chunks +18 lines, -4 lines 0 comments Download
M runtime/observatory/lib/src/models/objects/vm.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/service/object.dart View 1 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/mocks/objects/vm.dart View 1 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/sample_buffer_control/element_test.dart View 1 10 chunks +11 lines, -9 lines 0 comments Download
M runtime/observatory/tests/service/service.status View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/observatory/tests/service/test_helper.dart View 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/dart.cc View 1 2 3 2 chunks +7 lines, -11 lines 0 comments Download
M runtime/vm/flag_list.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M runtime/vm/malloc_hooks_test.cc View 1 2 3 8 chunks +43 lines, -54 lines 0 comments Download
M runtime/vm/profiler.cc View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M runtime/vm/profiler_test.cc View 1 2 3 22 chunks +31 lines, -0 lines 0 comments Download
M runtime/vm/program_visitor.cc View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M runtime/vm/service.cc View 3 3 chunks +16 lines, -0 lines 0 comments Download
M runtime/vm/service_test.cc View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
rmacnak
3 years, 4 months ago (2017-07-28 22:15:26 UTC) #3
zra
https://codereview.chromium.org/2989093002/diff/40001/runtime/vm/dart.cc File runtime/vm/dart.cc (right): https://codereview.chromium.org/2989093002/diff/40001/runtime/vm/dart.cc#newcode354 runtime/vm/dart.cc:354: #ifndef PRODUCT Is there any reason to use this ...
3 years, 4 months ago (2017-07-31 15:03:11 UTC) #4
rmacnak
https://codereview.chromium.org/2989093002/diff/40001/runtime/vm/dart.cc File runtime/vm/dart.cc (right): https://codereview.chromium.org/2989093002/diff/40001/runtime/vm/dart.cc#newcode354 runtime/vm/dart.cc:354: #ifndef PRODUCT On 2017/07/31 15:03:11, zra wrote: > Is ...
3 years, 4 months ago (2017-07-31 21:12:13 UTC) #5
cbernaschina
https://codereview.chromium.org/2989093002/diff/60001/runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart File runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart (right): https://codereview.chromium.org/2989093002/diff/60001/runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart#newcode139 runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart:139: if (tree.root.children.length == 1) { Consider switch or else ...
3 years, 4 months ago (2017-07-31 21:19:13 UTC) #6
zra
https://codereview.chromium.org/2989093002/diff/40001/runtime/vm/profiler.cc File runtime/vm/profiler.cc (right): https://codereview.chromium.org/2989093002/diff/40001/runtime/vm/profiler.cc#newcode104 runtime/vm/profiler.cc:104: // Note we do not free the sample buffer ...
3 years, 4 months ago (2017-07-31 21:59:28 UTC) #7
rmacnak
https://codereview.chromium.org/2989093002/diff/40001/runtime/vm/profiler.cc File runtime/vm/profiler.cc (right): https://codereview.chromium.org/2989093002/diff/40001/runtime/vm/profiler.cc#newcode104 runtime/vm/profiler.cc:104: // Note we do not free the sample buffer ...
3 years, 4 months ago (2017-08-01 19:58:58 UTC) #8
zra
lgtm
3 years, 4 months ago (2017-08-01 20:10:16 UTC) #9
cbernaschina
On 2017/08/01 20:10:16, zra wrote: > lgtm lgtm
3 years, 4 months ago (2017-08-01 20:13:25 UTC) #10
rmacnak
3 years, 4 months ago (2017-08-02 00:57:15 UTC) #12
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
cc08f2ddd87d7a5c692b48b2e8dd629addf4d827.

Powered by Google App Engine
This is Rietveld 408576698