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

Issue 18314006: Enable DMP for system Chromium WebView on Android (Closed)

Created:
7 years, 5 months ago by mnaganov (inactive)
Modified:
6 years, 10 months ago
CC:
chromium-reviews, craigdh+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, dmikurube+memory_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, android-webview-reviews_chromium.org, frankf+watch_chromium.org
Visibility:
Public.

Description

Enable DMP for system Chromium WebView on Android A couple of tweaks are needed in order to enable compiling inside the Android tree. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212490

Patch Set 1 #

Patch Set 2 : Ready for a review #

Total comments: 2

Patch Set 3 : Added a workaround for malloc_usable_size #

Total comments: 2

Patch Set 4 : Using a compiler define for detecting build type #

Total comments: 2

Patch Set 5 : No need for another gyp variable #

Total comments: 2

Patch Set 6 : Removed android_use_tcmalloc==1 condition #

Total comments: 6

Patch Set 7 : Do not indent preprocessor directives #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -1 line) Patch
M android_webview/android_webview.gyp View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M base/allocator/allocator.gyp View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M build/android/envsetup_functions.sh View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/base/linux_syscall_support.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/heap-profiler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/tcmalloc/chromium/src/libc_override_gcc_and_weak.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
mnaganov (inactive)
7 years, 5 months ago (2013-07-11 12:56:56 UTC) #1
bulach
lgtm (but I'm not an owner) thanks!! looking forward to see the results! one question ...
7 years, 5 months ago (2013-07-11 15:10:10 UTC) #2
mnaganov (inactive)
https://codereview.chromium.org/18314006/diff/2001/third_party/tcmalloc/chromium/src/libc_override_gcc_and_weak.h File third_party/tcmalloc/chromium/src/libc_override_gcc_and_weak.h (right): https://codereview.chromium.org/18314006/diff/2001/third_party/tcmalloc/chromium/src/libc_override_gcc_and_weak.h#newcode98 third_party/tcmalloc/chromium/src/libc_override_gcc_and_weak.h:98: size_t malloc_usable_size(const void* p) __THROW ALIAS(tc_malloc_size); On 2013/07/11 15:10:11, ...
7 years, 5 months ago (2013-07-11 16:44:56 UTC) #3
Dai Mikurube (NOT FULLTIME)
I'm not familiar with Android and WebView, I basically defer it to the OWNER. But, ...
7 years, 5 months ago (2013-07-11 17:45:37 UTC) #4
mnaganov (inactive)
Adding David. David, we have encountered peculiar differences in header files provided in NDK vs. ...
7 years, 5 months ago (2013-07-11 19:18:29 UTC) #5
mnaganov (inactive)
digit@: Ping!
7 years, 5 months ago (2013-07-15 08:24:37 UTC) #6
mnaganov (inactive)
[-digit, +torne] Switched to an explicit define for detecting build type. Adding Torne for build ...
7 years, 5 months ago (2013-07-15 12:22:32 UTC) #7
bulach
lgtm, but not an owner everywhere. just one suggestion below: https://codereview.chromium.org/18314006/diff/17001/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): https://codereview.chromium.org/18314006/diff/17001/base/allocator/allocator.gyp#newcode435 ...
7 years, 5 months ago (2013-07-15 12:31:59 UTC) #8
Torne
lgtm
7 years, 5 months ago (2013-07-15 12:33:01 UTC) #9
mnaganov (inactive)
https://codereview.chromium.org/18314006/diff/17001/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): https://codereview.chromium.org/18314006/diff/17001/base/allocator/allocator.gyp#newcode435 base/allocator/allocator.gyp:435: ['OS=="android" and android_use_tcmalloc==1 and android_sdk_build==1', { On 2013/07/15 12:31:59, ...
7 years, 5 months ago (2013-07-15 12:34:01 UTC) #10
bulach
lgtm, clarification below: https://codereview.chromium.org/18314006/diff/21001/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): https://codereview.chromium.org/18314006/diff/21001/base/allocator/allocator.gyp#newcode434 base/allocator/allocator.gyp:434: ['OS=="android" and android_use_tcmalloc==1 and android_webview_build==1', { ...
7 years, 5 months ago (2013-07-15 12:36:23 UTC) #11
mnaganov (inactive)
https://codereview.chromium.org/18314006/diff/21001/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): https://codereview.chromium.org/18314006/diff/21001/base/allocator/allocator.gyp#newcode434 base/allocator/allocator.gyp:434: ['OS=="android" and android_use_tcmalloc==1 and android_webview_build==1', { On 2013/07/15 12:36:24, ...
7 years, 5 months ago (2013-07-15 12:43:01 UTC) #12
Torne
On 2013/07/15 12:43:01, Mikhail Naganov (Chromium) wrote: > https://codereview.chromium.org/18314006/diff/21001/base/allocator/allocator.gyp > File base/allocator/allocator.gyp (right): > > ...
7 years, 5 months ago (2013-07-15 12:50:48 UTC) #13
bulach
exactly: it makes no sense anywhere else but allocator.gyp, but it also feels strange to ...
7 years, 5 months ago (2013-07-15 12:52:07 UTC) #14
mnaganov (inactive)
On 2013/07/15 12:52:07, bulach wrote: > exactly: it makes no sense anywhere else but allocator.gyp, ...
7 years, 5 months ago (2013-07-15 15:26:07 UTC) #15
bulach
lgtm, thanks!
7 years, 5 months ago (2013-07-15 16:15:40 UTC) #16
Dai Mikurube (NOT FULLTIME)
Thanks for working on this. https://codereview.chromium.org/18314006/diff/35001/base/allocator/allocator.gyp File base/allocator/allocator.gyp (right): https://codereview.chromium.org/18314006/diff/35001/base/allocator/allocator.gyp#newcode436 base/allocator/allocator.gyp:436: }], Hmm, sorry, my ...
7 years, 5 months ago (2013-07-15 16:48:05 UTC) #17
Torne
On 2013/07/15 16:48:05, Dai Mikurube wrote: > Thanks for working on this. > > https://codereview.chromium.org/18314006/diff/35001/base/allocator/allocator.gyp ...
7 years, 5 months ago (2013-07-15 16:50:25 UTC) #18
mnaganov (inactive)
What Torne said. Also, I think we are moving towards not depending on tcmalloc when ...
7 years, 5 months ago (2013-07-15 16:57:45 UTC) #19
Dai Mikurube (NOT FULLTIME)
Thanks for the information. So, lgtm for heap-profiler things. (Please ask OWNERS for other tcmalloc ...
7 years, 5 months ago (2013-07-15 17:16:17 UTC) #20
mnaganov (inactive)
Hello, William! Can you please a take a look at this change?
7 years, 5 months ago (2013-07-15 19:44:52 UTC) #21
willchan no longer on Chromium
Sorry for the delay, I somehow missed this in my inbox. https://codereview.chromium.org/18314006/diff/35001/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h File third_party/tcmalloc/chromium/src/base/linux_syscall_support.h (right): ...
7 years, 5 months ago (2013-07-18 16:20:26 UTC) #22
mnaganov (inactive)
https://codereview.chromium.org/18314006/diff/35001/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h File third_party/tcmalloc/chromium/src/base/linux_syscall_support.h (right): https://codereview.chromium.org/18314006/diff/35001/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h#newcode161 third_party/tcmalloc/chromium/src/base/linux_syscall_support.h:161: # include <sys/linux-syscalls.h> On 2013/07/18 16:20:26, willchan wrote: > ...
7 years, 5 months ago (2013-07-18 16:24:37 UTC) #23
mnaganov (inactive)
https://codereview.chromium.org/18314006/diff/35001/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h File third_party/tcmalloc/chromium/src/base/linux_syscall_support.h (right): https://codereview.chromium.org/18314006/diff/35001/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h#newcode161 third_party/tcmalloc/chromium/src/base/linux_syscall_support.h:161: # include <sys/linux-syscalls.h> On 2013/07/18 16:24:37, Mikhail Naganov (Chromium) ...
7 years, 5 months ago (2013-07-18 16:26:01 UTC) #24
willchan no longer on Chromium
I've approved this with a caveat and also with the understanding that bulach/torne have done ...
7 years, 5 months ago (2013-07-18 16:35:20 UTC) #25
mnaganov (inactive)
On 2013/07/18 16:35:20, willchan wrote: > I've approved this with a caveat and also with ...
7 years, 5 months ago (2013-07-18 16:46:22 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/18314006/54001
7 years, 5 months ago (2013-07-18 16:46:39 UTC) #27
commit-bot: I haz the power
Change committed as 212490
7 years, 5 months ago (2013-07-19 01:35:12 UTC) #28
Nico
6 years, 10 months ago (2014-02-01 19:22:14 UTC) #29
Message was sent while issue was closed.
Hi,

is there a tracking bug for this? Is this feature in use? Which bot uses it? I
don't see any results for "CHROME_ANDROID_WEBVIEW_ENABLE_DMPROF" on
cs.chromium.org)

Powered by Google App Engine
This is Rietveld 408576698