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

Issue 1725233002: histogram_macros: Added some documentation explaining constant rule. (Closed)

Created:
4 years, 10 months ago by Matt Giuca
Modified:
4 years, 8 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, vmpstr+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

histogram_macros: Added some documentation explaining constant rule. The |name| argument to the histogram macros must be a "runtime constant" (it is the same value on all calls from each call site). BUG= Committed: https://crrev.com/d0e0172d381e8fa9f0aecb8276f19b8f019def6c Cr-Commit-Position: refs/heads/master@{#385994}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rename constant_name back to name. Revert formatting changes. #

Patch Set 3 : Reword comment for clarity. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M base/metrics/histogram_macros.h View 1 2 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 15 (6 generated)
Matt Giuca
Follow-up to https://codereview.chromium.org/1721633002/ --- I was calling the macros with different names and it wasn't ...
4 years, 10 months ago (2016-02-24 04:26:59 UTC) #2
Ilya Sherman
Thanks! I agree that the formatting you chose is much more readable =) https://codereview.chromium.org/1725233002/diff/1/base/metrics/histogram_macros.h File ...
4 years, 10 months ago (2016-02-24 06:47:02 UTC) #3
Matt Giuca
https://codereview.chromium.org/1725233002/diff/1/base/metrics/histogram_macros.h File base/metrics/histogram_macros.h (right): https://codereview.chromium.org/1725233002/diff/1/base/metrics/histogram_macros.h#newcode120 base/metrics/histogram_macros.h:120: #define LOCAL_HISTOGRAM_TIMES(constant_name, sample) \ On 2016/02/24 06:47:02, Ilya Sherman ...
4 years, 10 months ago (2016-02-24 07:22:14 UTC) #4
Ilya Sherman
Any updates on this CL? (Cleaning up my review queue.)
4 years, 8 months ago (2016-04-08 00:38:11 UTC) #5
Matt Giuca
Sorry I left this. I reverted most of the changes. Now it is just a ...
4 years, 8 months ago (2016-04-08 01:23:16 UTC) #6
Ilya Sherman
LGTM, thanks.
4 years, 8 months ago (2016-04-08 02:27:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1725233002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1725233002/40001
4 years, 8 months ago (2016-04-08 04:10:49 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-08 05:22:04 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 05:23:19 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d0e0172d381e8fa9f0aecb8276f19b8f019def6c
Cr-Commit-Position: refs/heads/master@{#385994}

Powered by Google App Engine
This is Rietveld 408576698