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

Issue 574433002: Make the net logging code more compact. (Closed)

Created:
6 years, 3 months ago by Daniel Bratell
Modified:
6 years, 3 months ago
Reviewers:
eroman, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, eroman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Make the net logging code more compact. The generation of the lookup table between errors and strings for the net log expanded to 37 KB, due to the repeated code. Rewriting the code to a loop and it shrank by roughly 75%. Total change: -32087 bytes ========================== 3 added, totalling +960 bytes across 1 sources 60 removed, totalling -1143 bytes across 1 sources 1 shrunk, for a net change of -31904 bytes (36336 bytes before, 4432 bytes after) across 1 sources BUG= R=mmenke@chromium.org Committed: https://crrev.com/3795272d194b346ef1f066936cb20e67bd4b5dba Cr-Commit-Position: refs/heads/master@{#295338}

Patch Set 1 #

Total comments: 12

Patch Set 2 : net error tables #

Total comments: 8

Patch Set 3 : More compact net logger. #

Total comments: 1

Patch Set 4 : Net logger, addressed nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -29 lines) Patch
M net/base/net_log_logger.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/base/net_log_logger.cc View 1 2 3 5 chunks +41 lines, -15 lines 0 comments Download
M net/cert/cert_status_flags_list.h View 1 chunk +14 lines, -14 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
mmenke
Only realized you hadn't sent this out for review yet after making comments, sorry about ...
6 years, 3 months ago (2014-09-15 14:06:08 UTC) #2
mmenke
https://codereview.chromium.org/574433002/diff/1/net/base/net_log_logger.cc File net/base/net_log_logger.cc (right): https://codereview.chromium.org/574433002/diff/1/net/base/net_log_logger.cc#newcode124 net/base/net_log_logger.cc:124: { # label, net::LOAD_STATE_ ## label }, On 2014/09/15 ...
6 years, 3 months ago (2014-09-15 14:37:42 UTC) #3
Daniel Bratell
https://codereview.chromium.org/574433002/diff/1/net/base/net_log_logger.cc File net/base/net_log_logger.cc (right): https://codereview.chromium.org/574433002/diff/1/net/base/net_log_logger.cc#newcode90 net/base/net_log_logger.cc:90: { #label, (value) }, On 2014/09/15 14:06:08, mmenke wrote: ...
6 years, 3 months ago (2014-09-15 16:11:51 UTC) #4
mmenke
https://codereview.chromium.org/574433002/diff/20001/net/base/net_log_logger.cc File net/base/net_log_logger.cc (right): https://codereview.chromium.org/574433002/diff/20001/net/base/net_log_logger.cc#newcode70 net/base/net_log_logger.cc:70: struct StringToConstantTable { nit: This should be in an ...
6 years, 3 months ago (2014-09-15 16:17:29 UTC) #5
eroman
sounds like a worthwhile change, thanks!
6 years, 3 months ago (2014-09-15 21:57:37 UTC) #7
Daniel Bratell
https://codereview.chromium.org/574433002/diff/20001/net/base/net_log_logger.cc File net/base/net_log_logger.cc (right): https://codereview.chromium.org/574433002/diff/20001/net/base/net_log_logger.cc#newcode70 net/base/net_log_logger.cc:70: struct StringToConstantTable { On 2014/09/15 16:17:29, mmenke wrote: > ...
6 years, 3 months ago (2014-09-16 09:32:20 UTC) #8
mmenke
LGTM, just a tiny nit. No need to publish another message to ask for a ...
6 years, 3 months ago (2014-09-16 14:24:12 UTC) #9
mmenke
Oops, forgot to publish my nit. https://codereview.chromium.org/574433002/diff/40001/net/base/net_log_logger.cc File net/base/net_log_logger.cc (right): https://codereview.chromium.org/574433002/diff/40001/net/base/net_log_logger.cc#newcode51 net/base/net_log_logger.cc:51: } nit: } ...
6 years, 3 months ago (2014-09-16 14:24:29 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/574433002/60001
6 years, 3 months ago (2014-09-17 19:33:07 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001) as 05aa513761eb0cc013e41711d4139073a9ce56e3
6 years, 3 months ago (2014-09-17 20:32:59 UTC) #13
commit-bot: I haz the power
6 years, 3 months ago (2014-09-17 20:33:34 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3795272d194b346ef1f066936cb20e67bd4b5dba
Cr-Commit-Position: refs/heads/master@{#295338}

Powered by Google App Engine
This is Rietveld 408576698