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

Issue 11860015: Fix LevelDB histogram code. (Closed)

Created:
7 years, 11 months ago by dgrogan
Modified:
7 years, 11 months ago
Reviewers:
jsbell
CC:
chromium-reviews, alecflett
Visibility:
Public.

Description

Fix LevelDB histogram code. The old code misused the macros provided by histogram.h such that a DCHECK failed on the bots. UMA_HISTOGRAM_ENUMERATION et al use a static variable to retrieve the Histogram objects, so a single instance of that macro can't be used to retrieve multiple histograms. The old code tried to retrieve both LevelDBEnv.IOError and LevelDBEnv.IDB.IOError. This CL forgoes use of the macro and keeps a pointer to the Histogram objects around. http://wkb.ug/106135 will have to reland to make use of this. BUG=164755 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176577

Patch Set 1 #

Patch Set 2 : fix style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -45 lines) Patch
M third_party/leveldatabase/env_chromium.cc View 1 17 chunks +51 lines, -45 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
dgrogan
Josh, could you review this?
7 years, 11 months ago (2013-01-11 19:34:33 UTC) #1
jsbell
lgtm
7 years, 11 months ago (2013-01-11 19:44:29 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/11860015/1002
7 years, 11 months ago (2013-01-11 19:46:58 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/11860015/1002
7 years, 11 months ago (2013-01-12 00:44:31 UTC) #4
commit-bot: I haz the power
7 years, 11 months ago (2013-01-12 19:35:11 UTC) #5
Message was sent while issue was closed.
Change committed as 176577

Powered by Google App Engine
This is Rietveld 408576698