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

Issue 2771293003: Resubmission of native memory allocation info surfacing in Observatory. Fixed crashing tests and st… (Closed)

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

Description

Resubmission of native memory allocation info surfacing in Observatory. Fixed crashing tests and stack trace collection skip counts for different configurations. Fixed missing method referenced when MallocHooks is unsupported. BUG= R=johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/7c820f4363bd9a713f7c6455f2d56e640045ec8c

Patch Set 1 #

Patch Set 2 : Removed garbage code, updated status file to skip service test not supported #

Total comments: 4

Patch Set 3 : Resubmission of native memory allocation info surfacing in Observatory. Fixed crashing tests and st… #

Total comments: 1

Patch Set 4 : Added kSkipValue definitions for arm, arm64, and mips. #

Patch Set 5 : Addressed John's last comment #

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+1205 lines, -213 lines) Patch
M runtime/observatory/lib/elements.dart View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/app/application.dart View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/lib/src/app/page.dart View 1 2 3 4 5 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 1 2 3 4 5 2 chunks +4 lines, -3 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 1 2 3 4 5 3 chunks +2 lines, -3 lines 0 comments Download
M runtime/observatory/lib/src/elements/helpers/uris.dart View 1 2 3 4 5 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 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/models/repositories/sample_profile.dart View 1 2 3 4 5 2 chunks +7 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, -10 lines 0 comments Download
M runtime/observatory/lib/src/service/object.dart View 1 2 3 4 5 2 chunks +21 lines, -22 lines 0 comments Download
M runtime/observatory/observatory_sources.gypi View 1 2 3 4 5 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 5 1 chunk +85 lines, -0 lines 0 comments Download
M runtime/observatory/tests/service/service.status View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/malloc_hooks.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M runtime/vm/malloc_hooks.cc View 1 2 3 4 5 4 chunks +14 lines, -13 lines 0 comments Download
A runtime/vm/malloc_hooks_arm.cc View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
A runtime/vm/malloc_hooks_arm64.cc View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
A runtime/vm/malloc_hooks_ia32.cc View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
A runtime/vm/malloc_hooks_mips.cc View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M runtime/vm/malloc_hooks_test.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M runtime/vm/malloc_hooks_unsupported.cc View 1 chunk +5 lines, -0 lines 0 comments Download
A runtime/vm/malloc_hooks_x64.cc View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M runtime/vm/profiler.h View 1 2 3 4 5 10 chunks +77 lines, -1 line 0 comments Download
M runtime/vm/profiler.cc View 1 2 3 4 5 5 chunks +15 lines, -5 lines 0 comments Download
M runtime/vm/profiler_service.h View 1 2 3 4 5 4 chunks +19 lines, -1 line 0 comments Download
M runtime/vm/profiler_service.cc View 1 2 3 4 5 32 chunks +150 lines, -114 lines 0 comments Download
M runtime/vm/profiler_test.cc View 1 2 3 4 5 1 chunk +211 lines, -0 lines 0 comments Download
M runtime/vm/vm_sources.gypi View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
bkonyi
3 years, 9 months ago (2017-03-24 21:54:10 UTC) #2
siva
DBC https://codereview.chromium.org/2771293003/diff/20001/runtime/observatory/tests/service/service.status File runtime/observatory/tests/service/service.status (right): https://codereview.chromium.org/2771293003/diff/20001/runtime/observatory/tests/service/service.status#newcode103 runtime/observatory/tests/service/service.status:103: get_native_allocation_samples_test: RuntimeError # Unsupported. If it is not ...
3 years, 9 months ago (2017-03-24 22:51:00 UTC) #4
Cutch
lgtm after Siva's comments
3 years, 9 months ago (2017-03-27 16:37:33 UTC) #5
bkonyi
I've addressed Siva's comments and everything should be good to go. https://codereview.chromium.org/2771293003/diff/20001/runtime/observatory/tests/service/service.status File runtime/observatory/tests/service/service.status (right): ...
3 years, 9 months ago (2017-03-27 17:50:26 UTC) #6
Cutch
still lgtm https://codereview.chromium.org/2771293003/diff/40001/runtime/vm/malloc_hooks.cc File runtime/vm/malloc_hooks.cc (right): https://codereview.chromium.org/2771293003/diff/40001/runtime/vm/malloc_hooks.cc#newcode438 runtime/vm/malloc_hooks.cc:438: bool result = MallocHooksState::address_map()->Remove(ptr); const bool ...
3 years, 9 months ago (2017-03-27 17:52:29 UTC) #7
bkonyi
3 years, 9 months ago (2017-03-27 20:25:41 UTC) #9
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
7c820f4363bd9a713f7c6455f2d56e640045ec8c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698