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

Issue 6613027: Adds memory cache logging, and updates disk cache logging (Closed)

Created:
9 years, 9 months ago by mmenke
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, arv (Not doing code reviews), darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Adds memory cache logging, and updates disk cache logging. Memory and disk cache use the same set of events, with the same parameters (Though the disk cache has a couple events the memory cache does not). Most disk cache events were renamed so as to no longer imply a connection to the disk cache, and all disk cache-related NetLog parameter class definitions were moved to a new file, since they're shared by both entry type. BUG=59382 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78572

Patch Set 1 #

Patch Set 2 : Remove pointless plumbing that forced matching begin/end events #

Total comments: 3

Patch Set 3 : '' #

Total comments: 10

Patch Set 4 : Response to comments #

Patch Set 5 : Accidental sync to trunk #

Patch Set 6 : Oops #

Total comments: 2

Patch Set 7 : End event field descriptions with commas #

Patch Set 8 : Sync to trunk #

Patch Set 9 : Get range: Fix missing disk end event, add missing params to mem begin event #

Patch Set 10 : Reorder split functions to match headers #

Patch Set 11 : Oops #

Unified diffs Side-by-side diffs Delta from patch set Stats (+660 lines, -271 lines) Patch
M chrome/browser/net/passive_log_collector.h View 1 2 3 4 5 6 7 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/net/passive_log_collector.cc View 1 2 3 4 5 6 7 3 chunks +27 lines, -1 line 0 comments Download
M chrome/browser/resources/net_internals/main.css View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/net_internals/sourceentry.js View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M net/base/net_log_event_type_list.h View 1 2 3 4 5 6 7 37 chunks +132 lines, -102 lines 0 comments Download
M net/base/net_log_source_type_list.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M net/disk_cache/backend_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/backend_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/disk_cache_test_base.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M net/disk_cache/entry_impl.cc View 1 2 3 4 5 6 7 13 chunks +18 lines, -93 lines 0 comments Download
M net/disk_cache/mem_backend_impl.h View 1 2 3 4 5 6 7 4 chunks +8 lines, -2 lines 0 comments Download
M net/disk_cache/mem_backend_impl.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -4 lines 0 comments Download
M net/disk_cache/mem_entry_impl.h View 1 2 3 4 5 6 7 6 chunks +21 lines, -2 lines 0 comments Download
M net/disk_cache/mem_entry_impl.cc View 1 2 3 4 5 6 7 8 9 13 chunks +162 lines, -34 lines 0 comments Download
A net/disk_cache/net_log_parameters.h View 1 chunk +99 lines, -0 lines 0 comments Download
A net/disk_cache/net_log_parameters.cc View 1 chunk +100 lines, -0 lines 0 comments Download
M net/disk_cache/sparse_control.cc View 1 2 3 4 5 6 7 8 9 10 10 chunks +59 lines, -26 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
mmenke
9 years, 9 months ago (2011-03-03 22:06:41 UTC) #1
eroman
Hi Matthew, I am going to be on vacation tomorrow and monday. If it is ...
9 years, 9 months ago (2011-03-04 05:06:02 UTC) #2
mmenke
On 2011/03/04 05:06:02, eroman wrote: > Hi Matthew, I am going to be on vacation ...
9 years, 9 months ago (2011-03-04 05:09:55 UTC) #3
rvargas (doing something else)
Looks pretty good. http://codereview.chromium.org/6613027/diff/2006/net/disk_cache/sparse_control.cc File net/disk_cache/sparse_control.cc (right): http://codereview.chromium.org/6613027/diff/2006/net/disk_cache/sparse_control.cc#newcode639 net/disk_cache/sparse_control.cc:639: if (operation_ != kGetRangeOperation) { nit: ...
9 years, 9 months ago (2011-03-04 21:39:16 UTC) #4
mmenke
http://codereview.chromium.org/6613027/diff/10001/net/disk_cache/mem_entry_impl.cc File net/disk_cache/mem_entry_impl.cc (left): http://codereview.chromium.org/6613027/diff/10001/net/disk_cache/mem_entry_impl.cc#oldcode452 net/disk_cache/mem_entry_impl.cc:452: MemEntryImpl* child = new MemEntryImpl(backend_); On 2011/03/04 21:39:16, rvargas ...
9 years, 9 months ago (2011-03-07 17:46:40 UTC) #5
rvargas (doing something else)
LGTM, Thanks. http://codereview.chromium.org/6613027/diff/2006/net/disk_cache/sparse_control.cc File net/disk_cache/sparse_control.cc (right): http://codereview.chromium.org/6613027/diff/2006/net/disk_cache/sparse_control.cc#newcode639 net/disk_cache/sparse_control.cc:639: if (operation_ != kGetRangeOperation) { On 2011/03/04 ...
9 years, 9 months ago (2011-03-07 22:13:51 UTC) #6
mmenke
http://codereview.chromium.org/6613027/diff/2006/net/disk_cache/sparse_control.cc File net/disk_cache/sparse_control.cc (right): http://codereview.chromium.org/6613027/diff/2006/net/disk_cache/sparse_control.cc#newcode639 net/disk_cache/sparse_control.cc:639: if (operation_ != kGetRangeOperation) { On 2011/03/07 22:13:51, rvargas ...
9 years, 9 months ago (2011-03-07 22:19:24 UTC) #7
eroman
LGTM. sorry for taking so long! (i have been consumed with a top-crash on M11 ...
9 years, 9 months ago (2011-03-15 23:58:44 UTC) #8
mmenke
9 years, 9 months ago (2011-03-16 05:31:54 UTC) #9
Thanks.

That's the crash Randy is also working on, isn't it?  Not a problem.

http://codereview.chromium.org/6613027/diff/17001/net/base/net_log_event_type...
File net/base/net_log_event_type_list.h (right):

http://codereview.chromium.org/6613027/diff/17001/net/base/net_log_event_type...
net/base/net_log_event_type_list.h:569: //     "offset": <Offset at which to
start reading>;
On 2011/03/15 23:58:45, eroman wrote:
> nit: please use commas rather than semicolons, to match the other comments.
(it
> is pseudo-JSON).

You're right...I accidentally used some in a prior commit, so was copying from
the incorrect style.

A bunch of lines from earlier commits, a good chunk of them them mine, are also
missing commas.  I'll go ahead and fix the entire file while I'm at it.

Powered by Google App Engine
This is Rietveld 408576698