New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 889105 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 22
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , iOS , Chrome , Mac , Fuchsia
Pri: 2
Type: Bug



Sign in to add a comment

Rename system profile proto's is_asan_build to is_instrumented_build and correct its definition.

Project Member Reported by w...@chromium.org, Sep 25

Issue description

1. Rename the proto's is_asan_build to is_instrumented_build, to reflect its intended meaning (without changing the ordinal).

2. Fix the MetricsLog implementation to set that value both for ASAN and DCHECK-enabled[1] builds.

[1] TBD: Do we prefer to set the flag based on DCHECK_IS_CONFIGURABLE, or DCHECK_IS_ON(), or whether LOG_DCHECK == LOG_FATAL at run-time?
 
I think DCHECK_IS_ON() should be fine.
Project Member

Comment 2 by bugdroid1@chromium.org, Oct 4

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/720413e7f4f9b9caa167ec35576e0d1fad59571d

commit 720413e7f4f9b9caa167ec35576e0d1fad59571d
Author: Wez <wez@chromium.org>
Date: Thu Oct 04 17:04:31 2018

Set is_asan_build also in DCHECK-enabled binaries.

SystemProfile.is_asan_build was previously only set for ASAN builds. In
general we care about whether a build is standard, versus instrumented,
regardless of the kind of instrumentation, so we re-use this field to
also indicate DCHECK-enabled builds.

The field will be renamed to is_instrumented_build up-stream, to better
reflect its intended meaning.

Bug:  889105 
Change-Id: Ieb0c54dcf53db298a101d29447987791e9b085e1
Reviewed-on: https://chromium-review.googlesource.com/c/1260516
Reviewed-by: Alexei Svitkine <asvitkine@chromium.org>
Commit-Queue: Wez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596720}
[modify] https://crrev.com/720413e7f4f9b9caa167ec35576e0d1fad59571d/components/metrics/metrics_log.cc
[modify] https://crrev.com/720413e7f4f9b9caa167ec35576e0d1fad59571d/components/metrics/metrics_log_unittest.cc

Status: Started (was: Assigned)
Status: Fixed (was: Started)

Sign in to add a comment