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

Issue 641373005: Disable clank relocation packer when profiling is turned on. (Closed)

Created:
6 years, 2 months ago by David Yen
Modified:
6 years, 1 month ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Disable clank relocation packer when profiling is turned on. When packing is enabled, the profiler can no longer properly map the symbols which results in incorrect callstacks. Packing should be disable when profiling is turned on. R=vmiura@chromium.org BUG=None TEST=trybots Committed: https://crrev.com/5adad7f853b67ce4d10a1c04e3d132566d3ebc1a Cr-Commit-Position: refs/heads/master@{#299151}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M build/java_apk.gypi View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (3 generated)
David Yen
6 years, 2 months ago (2014-10-10 17:03:23 UTC) #1
David Yen
On 2014/10/10 17:03:23, David Yen wrote: CC anyone you think is necessary. I am not ...
6 years, 2 months ago (2014-10-10 17:04:34 UTC) #2
vmiura
rmcilroy@: please review this patch. Thanks.
6 years, 2 months ago (2014-10-10 17:50:33 UTC) #4
rmcilroy
I take it profiling is only used locally when doing perf measurements. If so this ...
6 years, 2 months ago (2014-10-10 18:22:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/641373005/1
6 years, 2 months ago (2014-10-10 18:30:40 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years, 2 months ago (2014-10-10 18:54:23 UTC) #9
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/5adad7f853b67ce4d10a1c04e3d132566d3ebc1a Cr-Commit-Position: refs/heads/master@{#299151}
6 years, 2 months ago (2014-10-10 18:55:01 UTC) #10
simonb (inactive)
Relocation packing splits a single executable load segment into two, and this renders faulty some ...
6 years, 2 months ago (2014-10-13 17:01:43 UTC) #11
David Yen
On 2014/10/13 17:01:43, simonb wrote: > Relocation packing splits a single executable load segment into ...
6 years, 1 month ago (2014-10-29 21:37:21 UTC) #12
simonb (inactive)
On 2014/10/29 21:37:21, David Yen wrote: > On 2014/10/13 17:01:43, simonb wrote: > > Relocation ...
6 years, 1 month ago (2014-10-30 18:19:58 UTC) #13
vmiura
6 years, 1 month ago (2014-10-30 21:16:50 UTC) #14
Message was sent while issue was closed.
On 2014/10/30 18:19:58, simonb wrote:
> On 2014/10/29 21:37:21, David Yen wrote:
> > On 2014/10/13 17:01:43, simonb wrote:
> > > Relocation packing splits a single executable load segment into two, and
> this
> > > renders faulty some assumptions in several tools that parse the process
> memory
> > > map.  Eg, Breakpad and Android libbacktrace:
> > > 
> > > https://bugzilla.mozilla.org/show_bug.cgi?id=637316
> > > https://breakpad.appspot.com/7714003
> > > https://code.google.com/p/android/issues/detail?id=76717
> > > 
> > > David, can you try with relocation packing turned back on and with a
patched
> > > pprof?  The following diff for gperftools-2.2.1/src/pprof worked for me in
> > > simple (non-Chromium) testing.  If this solves the issue for you then I
will
> > > file a bug report against pprof.  Thanks.
> > > ...
> > 
> > Hi Simon, I am not using pprof so I don't think this is a related problem.
> 
> Can you say how you are profiling, then?  This page:
> 
> http://www.chromium.org/developers/profiling-chromium-and-webkit
> 
> talks about using 'pprof' after setting profiling=1.

David's fix relates to use of 'perf', also on that wiki page although it looks
like that could use some better documentation.

Android 'perf' is also used as part of the "adb_profile_chrome --perf" command:

 
http://www.chromium.org/developers/how-tos/trace-event-profiling-tool/recordi...

Powered by Google App Engine
This is Rietveld 408576698