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

Issue 2966593002: Updated native memory allocation profiling to use its own sample buffer instead of sharing a sample… (Closed)

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

Description

Updated native memory allocation profiling to use its own sample buffer instead of sharing a sample buffer with the CPU profiler, which did lead to samples being quickly overwritten even if the memory hadn't yet been freed. This will ensure allocations are accurately displayed in Observatory as the CPU profiler will no longer overwrite samples associated with native memory allocations. BUG= R=zra@google.com Committed: https://github.com/dart-lang/sdk/commit/cc68a66f2845acc7bed5697e3c504c37313ebd01

Patch Set 1 #

Total comments: 14

Patch Set 2 : Updated native memory allocation profiling to use its own sample buffer instead of sharing a sample… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -89 lines) Patch
M runtime/vm/malloc_hooks_tcmalloc.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/vm/malloc_hooks_test.cc View 5 chunks +5 lines, -0 lines 0 comments Download
M runtime/vm/profiler.h View 1 13 chunks +37 lines, -22 lines 0 comments Download
M runtime/vm/profiler.cc View 1 10 chunks +102 lines, -2 lines 0 comments Download
M runtime/vm/profiler_service.h View 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/profiler_service.cc View 1 12 chunks +21 lines, -16 lines 0 comments Download
M runtime/vm/profiler_test.cc View 48 chunks +48 lines, -48 lines 0 comments Download
M runtime/vm/source_report.cc View 1 chunk +2 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 7 (2 generated)
bkonyi
3 years, 5 months ago (2017-06-29 20:50:52 UTC) #2
zra
https://codereview.chromium.org/2966593002/diff/1/runtime/vm/profiler.cc File runtime/vm/profiler.cc (right): https://codereview.chromium.org/2966593002/diff/1/runtime/vm/profiler.cc#newcode232 runtime/vm/profiler.cc:232: intptr_t AllocationSampleBuffer::ReserveSampleSlot() { If the lock must be held ...
3 years, 5 months ago (2017-06-30 18:49:17 UTC) #3
bkonyi
https://codereview.chromium.org/2966593002/diff/1/runtime/vm/profiler.cc File runtime/vm/profiler.cc (right): https://codereview.chromium.org/2966593002/diff/1/runtime/vm/profiler.cc#newcode232 runtime/vm/profiler.cc:232: intptr_t AllocationSampleBuffer::ReserveSampleSlot() { On 2017/06/30 18:49:16, zra wrote: > ...
3 years, 5 months ago (2017-07-05 18:20:53 UTC) #4
zra
lgtm
3 years, 5 months ago (2017-07-10 16:14:36 UTC) #5
bkonyi
3 years, 5 months ago (2017-07-10 17:31:52 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
cc68a66f2845acc7bed5697e3c504c37313ebd01 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698