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

Issue 2748403002: Added page to Observatory to display native memory allocation information. (Closed)

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

Description

Added page to Observatory to display native memory allocation information. BUG= R=johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/f30f312b487f88ade32405bd6c9e2e943a5586d1

Patch Set 1 #

Patch Set 2 : Added tests to verify sample tries inclusive/exclusive allocations. Element now displays memory con… #

Total comments: 29

Patch Set 3 : Added page to Observatory to display native memory allocation information. #

Total comments: 31

Patch Set 4 : Addressed comments except cpp test and incorrect ASSERT assumption #

Patch Set 5 : Added cpp test, fixed NativeAllocationSampleFilter #

Total comments: 26

Patch Set 6 : Final patch. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1066 lines, -203 lines) Patch
M runtime/observatory/lib/elements.dart View 3 chunks +3 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/app/application.dart View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/lib/src/app/page.dart View 2 chunks +20 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/cpu_profile/cpu_profile.dart View 1 2 3 4 5 18 chunks +132 lines, -22 lines 0 comments Download
M runtime/observatory/lib/src/elements/class_ref.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/observatory/lib/src/elements/code_ref.dart View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart View 1 2 3 4 5 10 chunks +109 lines, -15 lines 0 comments Download
M runtime/observatory/lib/src/elements/function_ref.dart View 3 chunks +2 lines, -3 lines 0 comments Download
M runtime/observatory/lib/src/elements/helpers/uris.dart View 1 chunk +1 line, -0 lines 0 comments Download
A runtime/observatory/lib/src/elements/native_memory_profiler.dart View 1 2 3 4 5 1 chunk +162 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/elements/vm_view.dart View 2 chunks +13 lines, -2 lines 0 comments Download
M runtime/observatory/lib/src/models/repositories/sample_profile.dart View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/repositories/sample_profile.dart View 1 2 3 4 5 5 chunks +39 lines, -8 lines 0 comments Download
M runtime/observatory/lib/src/service/object.dart View 1 2 3 2 chunks +21 lines, -22 lines 0 comments Download
M runtime/observatory/observatory_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A runtime/observatory/tests/service/get_native_allocation_samples_test.dart View 1 2 3 4 1 chunk +85 lines, -0 lines 0 comments Download
M runtime/vm/malloc_hooks.cc View 1 2 3 4 5 chunks +14 lines, -6 lines 0 comments Download
M runtime/vm/profiler.h View 1 2 3 4 5 9 chunks +61 lines, -1 line 0 comments Download
M runtime/vm/profiler.cc View 1 2 3 5 chunks +15 lines, -5 lines 0 comments Download
M runtime/vm/profiler_service.h View 1 2 3 4 4 chunks +19 lines, -1 line 0 comments Download
M runtime/vm/profiler_service.cc View 1 2 3 4 32 chunks +150 lines, -114 lines 0 comments Download
M runtime/vm/profiler_test.cc View 1 2 3 4 1 chunk +207 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
bkonyi
https://codereview.chromium.org/2748403002/diff/20001/runtime/vm/profiler_service.cc File runtime/vm/profiler_service.cc (right): https://codereview.chromium.org/2748403002/diff/20001/runtime/vm/profiler_service.cc#newcode1717 runtime/vm/profiler_service.cc:1717: // TODO(bkonyi) deal with this What needs to be ...
3 years, 9 months ago (2017-03-16 19:50:57 UTC) #2
zra
https://codereview.chromium.org/2748403002/diff/20001/runtime/vm/malloc_hooks.cc File runtime/vm/malloc_hooks.cc (right): https://codereview.chromium.org/2748403002/diff/20001/runtime/vm/malloc_hooks.cc#newcode134 runtime/vm/malloc_hooks.cc:134: explicit AllocationInfo(uword address, intptr_t allocation_size) Don't need 'explicit' when ...
3 years, 9 months ago (2017-03-16 20:36:37 UTC) #3
Cutch
lgtm https://codereview.chromium.org/2748403002/diff/20001/runtime/vm/malloc_hooks.cc File runtime/vm/malloc_hooks.cc (right): https://codereview.chromium.org/2748403002/diff/20001/runtime/vm/malloc_hooks.cc#newcode154 runtime/vm/malloc_hooks.cc:154: sample_->set_native_allocation_address(0); what about the size too? https://codereview.chromium.org/2748403002/diff/20001/runtime/vm/profiler_service.cc File ...
3 years, 9 months ago (2017-03-16 20:38:16 UTC) #4
Cutch
Misclicked, NOT LGTM
3 years, 9 months ago (2017-03-16 20:39:01 UTC) #5
bkonyi
Responded to some comments for clarification. https://codereview.chromium.org/2748403002/diff/20001/runtime/vm/malloc_hooks.cc File runtime/vm/malloc_hooks.cc (right): https://codereview.chromium.org/2748403002/diff/20001/runtime/vm/malloc_hooks.cc#newcode151 runtime/vm/malloc_hooks.cc:151: if (allocation_address != ...
3 years, 9 months ago (2017-03-16 20:48:40 UTC) #6
bkonyi
https://codereview.chromium.org/2748403002/diff/20001/runtime/vm/malloc_hooks.cc File runtime/vm/malloc_hooks.cc (right): https://codereview.chromium.org/2748403002/diff/20001/runtime/vm/malloc_hooks.cc#newcode134 runtime/vm/malloc_hooks.cc:134: explicit AllocationInfo(uword address, intptr_t allocation_size) On 2017/03/16 20:36:37, zra ...
3 years, 9 months ago (2017-03-21 01:53:24 UTC) #7
Cutch
A bunch of comments. Mostly minor. It would be nice to have a C++ unit ...
3 years, 9 months ago (2017-03-21 20:27:11 UTC) #8
bkonyi
I think this covers pretty much everything except for the C++ test and that assertion ...
3 years, 9 months ago (2017-03-22 21:25:21 UTC) #9
bkonyi
Alright, I think this should be it if the new profiler test is sufficient.
3 years, 9 months ago (2017-03-23 23:13:48 UTC) #10
Cutch
LGTM after addressing my comments. I think you may have some bugs where you're using ...
3 years, 9 months ago (2017-03-23 23:39:45 UTC) #11
bkonyi
https://codereview.chromium.org/2748403002/diff/80001/runtime/observatory/lib/src/cpu_profile/cpu_profile.dart File runtime/observatory/lib/src/cpu_profile/cpu_profile.dart (right): https://codereview.chromium.org/2748403002/diff/80001/runtime/observatory/lib/src/cpu_profile/cpu_profile.dart#newcode100 runtime/observatory/lib/src/cpu_profile/cpu_profile.dart:100: node._percentage = (node.inclusiveNativeAllocations / parentMemory); On 2017/03/23 23:39:44, Cutch ...
3 years, 9 months ago (2017-03-24 00:53:39 UTC) #12
bkonyi
3 years, 9 months ago (2017-03-24 16:20:35 UTC) #14
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
f30f312b487f88ade32405bd6c9e2e943a5586d1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698