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

Issue 1905793002: Enable Runtime Memory Leak Detector on x86_64 only (Closed)

Created:
4 years, 8 months ago by Simon Que
Modified:
4 years, 8 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, Will Harris
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable Runtime Memory Leak Detector on x86_64 only The leak detector requires Chrome to be compiled with frame pointer, which is the case for Chrome OS x86_64. But not on 32-bit x86 or ARM. BUG=chromium:605320 TEST=build successfully. Add a CHECK(false) to leak detector and build for x86_64 and ARM. It should crash on x86_64 but not on ARM. R=asvitkine@chromium.org, isherman@chromium.org Committed: https://crrev.com/961ce9c8e5f7aae2685286356c2130373ba14fe0 Cr-Commit-Position: refs/heads/master@{#388694}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M chrome/browser/metrics/chromeos_metrics_provider.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Simon Que
I'm not sure whether this is the correct place for this code. I could see ...
4 years, 8 months ago (2016-04-20 22:51:44 UTC) #1
Ilya Sherman
LGTM On 2016/04/20 22:51:44, Simon Que wrote: > I'm not sure whether this is the ...
4 years, 8 months ago (2016-04-20 23:18:03 UTC) #2
Simon Que
On 2016/04/20 23:18:03, Ilya Sherman wrote: > LGTM > > On 2016/04/20 22:51:44, Simon Que ...
4 years, 8 months ago (2016-04-20 23:34:02 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1905793002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1905793002/1
4 years, 8 months ago (2016-04-21 04:04:09 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-21 04:43:07 UTC) #6
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/961ce9c8e5f7aae2685286356c2130373ba14fe0 Cr-Commit-Position: refs/heads/master@{#388694}
4 years, 8 months ago (2016-04-22 19:31:36 UTC) #8
Ilya Sherman
4 years, 8 months ago (2016-04-25 18:46:38 UTC) #9
Message was sent while issue was closed.
On 2016/04/20 23:34:02, Simon Que wrote:
> On 2016/04/20 23:18:03, Ilya Sherman wrote:
> > LGTM
> > 
> > On 2016/04/20 22:51:44, Simon Que wrote:
> > > I'm not sure whether this is the correct place for this code. I could see
it
> > > going into leak_detector_controller.cc as well, or into
> > > components/metrics/leak_detector/leak_detector.cc.
> > 
> > Here seems good, because it allows you to only test the field trial state
for
> > potentially eligible users.  This has the advantage of not tagging
ineligible
> > users as having participated in the field trial, which often makes metrics
> > analysis easier down the line.  Even if you don't think you're likely to
look
> at
> > field trial-split metrics for this study, it's useful to set things up this
> way,
> > in case you develop an interest in such an analysis later on.
> 
> On a non-x86_64 system, how would the field trial know that this feature was
> skipped over? This code is only disabling the check
> "base::FeatureList::IsEnabled(features::kRuntimeMemoryLeakDetector)" but IIUC,
> the variations system may have already designated this system as a
> leak-detector-enabled system.

Field trials are only reported as enabled when there is some code that queries
for the enabled state.  This is precisely to prevent users who don't interact
with the feature from confusing the data.  So, prior to the
base::FeatureList::IsEnabled() call, the variations service is prepared to
assign the system to the enabled state, but it doesn't actually make the
assignment until that method is called.

Powered by Google App Engine
This is Rietveld 408576698