DescriptionOptimize machine code size of UMA histogram macros.
Adds overloads to the histogram FactoryGet() functions
that take a const char* param, instead of std::string for
the name. This avoids the std::string constructor being
inlined at call-sites when a C string is passed (but call
sites that pass std::strings already will continue to use
the std::string functions).
In my Mac Release build, this change results in a 271K
reduction to Chromium Framework binary size.
BUG=343946
Committed: https://crrev.com/5c2d502d34ea0f162d7fc5c916b1cff9e6acb0b4
Cr-Commit-Position: refs/heads/master@{#335178}
Patch Set 1 #
Messages
Total messages: 15 (3 generated)
|