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

Issue 2829833003: [Fuchsia] Grab the number of malloc'd bytes from jemalloc (Closed)

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

Description

[Fuchsia] Grab the number of malloc'd bytes from jemalloc This allows us to report the "native heap memory" value in the Observatory for VMs running on Fuchsia. This change also renames the flag --enable-malloc-hooks to --profiler-native-memory to better reflect what the flag does. (In the future we may also want to rename --profiler to --profiler-cpu.) R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/135b1907ee6f9cd09817e0dfd5d5aa118c1033b8

Patch Set 1 #

Patch Set 2 : Fix guards #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -505 lines) Patch
M runtime/BUILD.gn View 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/flag_list.h View 2 chunks +2 lines, -3 lines 0 comments Download
D runtime/vm/malloc_hooks.cc View 1 chunk +0 lines, -448 lines 0 comments Download
A + runtime/vm/malloc_hooks_jemalloc.cc View 1 3 chunks +40 lines, -20 lines 1 comment Download
A + runtime/vm/malloc_hooks_tcmalloc.cc View 8 chunks +8 lines, -9 lines 0 comments Download
M runtime/vm/malloc_hooks_test.cc View 8 chunks +16 lines, -17 lines 0 comments Download
M runtime/vm/malloc_hooks_unsupported.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M runtime/vm/profiler_test.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/vm_sources.gypi View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (3 generated)
zra
3 years, 8 months ago (2017-04-19 22:29:08 UTC) #3
bkonyi
I'd image if we use jemalloc, we aren't using tcmalloc right? If so, do we ...
3 years, 8 months ago (2017-04-19 22:43:02 UTC) #4
rmacnak
lgtm https://codereview.chromium.org/2829833003/diff/20001/runtime/vm/malloc_hooks_jemalloc.cc File runtime/vm/malloc_hooks_jemalloc.cc (right): https://codereview.chromium.org/2829833003/diff/20001/runtime/vm/malloc_hooks_jemalloc.cc#newcode6 runtime/vm/malloc_hooks_jemalloc.cc:6: #if defined(DART_USE_JEMALLOC) && !defined(PRODUCT) && !defined(TARGET_ARCH_DBC) Not part ...
3 years, 8 months ago (2017-04-19 22:43:59 UTC) #5
zra
Committed patchset #2 (id:20001) manually as 135b1907ee6f9cd09817e0dfd5d5aa118c1033b8 (presubmit successful).
3 years, 8 months ago (2017-04-19 22:51:08 UTC) #7
zra
3 years, 8 months ago (2017-04-19 22:54:00 UTC) #8
Message was sent while issue was closed.
On 2017/04/19 22:43:02, bkonyi wrote:
> I'd image if we use jemalloc, we aren't using tcmalloc right? If so, do we not
> want to collect stack traces for memory allocations as well on Fuchsia?

At the moment, I don't see any way to hook into the calls with jemalloc.
If/when we find a way to do that, we can collect the stack traces, etc.

Powered by Google App Engine
This is Rietveld 408576698