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

Issue 3448028: Implemented VLOG() et al. (Closed)

Created:
10 years, 2 months ago by akalin
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, brettw-cc_chromium.org, Paweł Hajdan Jr., ben+cc_chromium.org, tim (not reviewing), jshin+watch_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Implemented VLOG() et al. Implemented VLOG(), VLOG_IF(), VLOG_IS_ON(). Added --v and --vmodule switches. Changed some spammy sync-related logs to use VLOG. BUG=56965 TEST=New unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=60976

Patch Set 1 #

Total comments: 6

Patch Set 2 : Converted to use StringPiece #

Patch Set 3 : Added benchmarks #

Total comments: 2

Patch Set 4 : Addressed darin's and evmar's comments #

Total comments: 4

Patch Set 5 : Addressed evmar's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -24 lines) Patch
M base/base.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M base/base_switches.h View 1 chunk +2 lines, -0 lines 0 comments Download
M base/base_switches.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M base/logging.h View 1 2 3 3 chunks +54 lines, -0 lines 0 comments Download
M base/logging.cc View 1 3 chunks +22 lines, -1 line 0 comments Download
M base/string_util.h View 1 chunk +2 lines, -1 line 0 comments Download
M base/string_util.cc View 1 chunk +4 lines, -3 lines 0 comments Download
A base/vlog.h View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
A base/vlog.cc View 1 2 3 4 1 chunk +69 lines, -0 lines 0 comments Download
A base/vlog_unittest.cc View 1 2 3 4 1 chunk +105 lines, -0 lines 0 comments Download
M chrome/browser/sync/notifier/cache_invalidation_packet_handler.cc View 4 chunks +13 lines, -13 lines 0 comments Download
chrome/browser/sync/notifier/chrome_invalidation_client.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M jingle/notifier/base/xmpp_connection.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
akalin
+evmar for review
10 years, 2 months ago (2010-09-26 20:12:33 UTC) #1
Evan Martin
How does this compare to the glog vlog? (I know using glog has its own ...
10 years, 2 months ago (2010-09-26 20:13:58 UTC) #2
akalin
On 2010/09/26 20:13:58, Evan Martin wrote: > How does this compare to the glog vlog? ...
10 years, 2 months ago (2010-09-26 21:29:15 UTC) #3
Evan Martin
I like it. We need to figure out the performance/caching stuff first but I think ...
10 years, 2 months ago (2010-09-27 17:36:45 UTC) #4
darin (slow to review)
http://codereview.chromium.org/3448028/diff/1/7 File base/logging.h (right): http://codereview.chromium.org/3448028/diff/1/7#newcode84 base/logging.h:84: // --vmodule=mapreduce=2,file=1,gfs*=3 --v=0 nit: might be nice to use ...
10 years, 2 months ago (2010-09-27 17:48:33 UTC) #5
akalin
I rejiggered the code a bit to use base::StringPiece instead of std::string to avoid copies. ...
10 years, 2 months ago (2010-09-28 02:42:26 UTC) #6
darin (slow to review)
http://codereview.chromium.org/3448028/diff/18001/19009 File base/vlog.cc (right): http://codereview.chromium.org/3448028/diff/18001/19009#newcode35 base/vlog.cc:35: class SaveLastErrno { why do we need this? is ...
10 years, 2 months ago (2010-09-28 06:32:57 UTC) #7
akalin
http://codereview.chromium.org/3448028/diff/18001/19009 File base/vlog.cc (right): http://codereview.chromium.org/3448028/diff/18001/19009#newcode35 base/vlog.cc:35: class SaveLastErrno { On 2010/09/28 06:32:59, darin wrote: > ...
10 years, 2 months ago (2010-09-28 17:10:54 UTC) #8
Evan Martin
On 2010/09/28 17:10:54, akalin wrote: > This is so that "VLOG(1) << "foo " << ...
10 years, 2 months ago (2010-09-28 17:16:13 UTC) #9
akalin
On 2010/09/28 17:16:13, Evan Martin wrote: > On 2010/09/28 17:10:54, akalin wrote: > > This ...
10 years, 2 months ago (2010-09-28 18:00:26 UTC) #10
darin (slow to review)
On Tue, Sep 28, 2010 at 10:10 AM, <akalin@chromium.org> wrote: > > http://codereview.chromium.org/3448028/diff/18001/19009 > File ...
10 years, 2 months ago (2010-09-28 18:25:18 UTC) #11
akalin
On 2010/09/28 18:25:18, darin wrote: > > I see. You could add debug-only code that ...
10 years, 2 months ago (2010-09-28 18:27:25 UTC) #12
Evan Martin
Since you removed the errno test, does that mean using VLOG clobbers errno? http://codereview.chromium.org/3448028/diff/11002/14023 File ...
10 years, 2 months ago (2010-09-28 18:56:17 UTC) #13
akalin
On 2010/09/28 18:56:17, Evan Martin wrote: > Since you removed the errno test, does that ...
10 years, 2 months ago (2010-09-28 19:38:46 UTC) #14
akalin
http://codereview.chromium.org/3448028/diff/11002/14023 File base/vlog.cc (right): http://codereview.chromium.org/3448028/diff/11002/14023#newcode20 base/vlog.cc:20: (void)base::StringToInt(v_switch, &max_vlog_level_); On 2010/09/28 18:56:18, Evan Martin wrote: > ...
10 years, 2 months ago (2010-09-28 19:38:56 UTC) #15
Evan Martin
10 years, 2 months ago (2010-09-29 19:19:11 UTC) #16
LGTM

Powered by Google App Engine
This is Rietveld 408576698