DescriptionMake code generated for histogram macros more compact.
In builds where DCHECKs are compiled in (e.g. developer
builds and Chrome Canaries), the DCHECK_EQ() in the
histogram macro was expanding to a lot of generated
machine code.
This CL moves that DCHECK() to a function instead, so that the
code is not duplicated in every call site. The function call is
wrapped behind a DCHECK_IS_ON() conditional, so that it will
still be omitted if DCHECKs are not compiled into the build.
Makes my Chromium release build smaller by over 1MB,
measuring size of Chromium Framework.
Before size: 146547380
After size: 145400692
BUG=343946
TEST=No functional changes.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251486
Patch Set 1 : #
Total comments: 1
Messages
Total messages: 10 (0 generated)
|