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

Issue 7583049: Record UMA statistics for file_stream operations. (Closed)

Created:
9 years, 4 months ago by ahendrickson
Modified:
9 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Record UMA statistics for file_stream operations. Allows control over whether or not to record the statistics based on flags. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102560

Patch Set 1 #

Patch Set 2 : Fixed Posix issues. #

Patch Set 3 : Fixed some bugs. #

Patch Set 4 : Hopefully fixed crash bug in file stream UMA stats. #

Total comments: 2

Patch Set 5 : Saved the error code in case it's modified by recording it. #

Total comments: 22

Patch Set 6 : Simplified the UMA error statistics gathering. #

Total comments: 37

Patch Set 7 : Refactored per Chris' comments. #

Patch Set 8 : Fixed Posix compile error. #

Total comments: 14

Patch Set 9 : Made RecordAndMapError() an anonymous function. #

Patch Set 10 : Fixed Posix error. #

Total comments: 12

Patch Set 11 : Removed unused data. #

Total comments: 3

Patch Set 12 : Renamed UMA utility functions. #

Patch Set 13 : Merged with trunk. #

Patch Set 14 : Merged with trunk #

Patch Set 15 : Merged with trunk. #

Patch Set 16 : Fixed EOL problems. #

Patch Set 17 : Merged with trunk after fixing EOL issues in another CL. #

Patch Set 18 : Merged with trunk. #

Patch Set 19 : Merged with trunk #

Patch Set 20 : Temporary logging to figure out why Mac trybots are failing. #

Patch Set 21 : Handle EMFILE posix error code. #

Patch Set 22 : Log open files on 'too many open files' error. #

Patch Set 23 : Testing to see where files are opened. #

Patch Set 24 : Test to see where files are opened (from correct branch). #

Patch Set 25 : Fixed copy/paste error, and test failures. #

Patch Set 26 : Cleanup. #

Patch Set 27 : Log Javascript errors, to debug trybots. #

Patch Set 28 : Removed extra logging. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+413 lines, -39 lines) Patch
M content/browser/download/base_file.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -0 lines 0 comments Download
M net/base/file_stream.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
A net/base/file_stream_metrics.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +41 lines, -0 lines 0 comments Download
A net/base/file_stream_metrics.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +81 lines, -0 lines 0 comments Download
A net/base/file_stream_metrics_posix.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +21 lines, -0 lines 0 comments Download
A net/base/file_stream_metrics_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 1 chunk +146 lines, -0 lines 0 comments Download
M net/base/file_stream_posix.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 14 chunks +50 lines, -24 lines 0 comments Download
M net/base/file_stream_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 18 chunks +51 lines, -15 lines 0 comments Download
M net/base/net_errors_posix.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +9 lines, -0 lines 0 comments Download
M net/base/net_errors_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +3 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
ahendrickson
9 years, 4 months ago (2011-08-12 03:48:31 UTC) #1
ahendrickson
http://codereview.chromium.org/7583049/diff/4002/net/base/file_stream_posix.cc File net/base/file_stream_posix.cc (right): http://codereview.chromium.org/7583049/diff/4002/net/base/file_stream_posix.cc#newcode150 net/base/file_stream_posix.cc:150: explicit AsyncContext(); Removed 'explicit' http://codereview.chromium.org/7583049/diff/4002/net/base/file_stream_posix.cc#newcode349 net/base/file_stream_posix.cc:349: RecordFileError(errno, FILE_ERROR_TYPES_OPEN, class_flags_); ...
9 years, 4 months ago (2011-08-12 16:06:21 UTC) #2
cbentzel
Top-level request: Remove the notion of class from this CL, as it's not needed now ...
9 years, 4 months ago (2011-08-15 19:49:11 UTC) #3
ahendrickson
http://codereview.chromium.org/7583049/diff/8001/content/browser/download/base_file.cc File content/browser/download/base_file.cc (right): http://codereview.chromium.org/7583049/diff/8001/content/browser/download/base_file.cc#newcode39 content/browser/download/base_file.cc:39: if (file_stream_.get()) On 2011/08/15 19:49:11, cbentzel wrote: > When ...
9 years, 4 months ago (2011-08-15 23:42:26 UTC) #4
cbentzel
http://codereview.chromium.org/7583049/diff/15001/net/base/file_stream.h File net/base/file_stream.h (right): http://codereview.chromium.org/7583049/diff/15001/net/base/file_stream.h#newcode136 net/base/file_stream.h:136: void EnableRecording(); Nit: EnableErrorRecording? or EnableErrorReporting? http://codereview.chromium.org/7583049/diff/15001/net/base/file_stream_metrics.cc File net/base/file_stream_metrics.cc ...
9 years, 4 months ago (2011-08-16 13:36:02 UTC) #5
ahendrickson
http://codereview.chromium.org/7583049/diff/15001/net/base/file_stream.h File net/base/file_stream.h (right): http://codereview.chromium.org/7583049/diff/15001/net/base/file_stream.h#newcode136 net/base/file_stream.h:136: void EnableRecording(); On 2011/08/16 13:36:02, cbentzel wrote: > Nit: ...
9 years, 4 months ago (2011-08-17 20:12:04 UTC) #6
cbentzel
http://codereview.chromium.org/7583049/diff/15001/net/base/file_stream_posix.cc File net/base/file_stream_posix.cc (right): http://codereview.chromium.org/7583049/diff/15001/net/base/file_stream_posix.cc#newcode488 net/base/file_stream_posix.cc:488: int result = ftruncate(file_, bytes); On 2011/08/17 20:12:04, ahendrickson ...
9 years, 4 months ago (2011-08-18 13:31:27 UTC) #7
ahendrickson
http://codereview.chromium.org/7583049/diff/15001/net/base/file_stream_posix.cc File net/base/file_stream_posix.cc (right): http://codereview.chromium.org/7583049/diff/15001/net/base/file_stream_posix.cc#newcode488 net/base/file_stream_posix.cc:488: int result = ftruncate(file_, bytes); On 2011/08/18 13:31:27, cbentzel ...
9 years, 4 months ago (2011-08-18 15:56:45 UTC) #8
Randy Smith (Not in Mondays)
Unless Andy or Chris have major objections, I'm happy to rely on Chris' review of ...
9 years, 4 months ago (2011-08-19 15:08:29 UTC) #9
cbentzel
Sorry for the delay - I thought I had completed another round of review earlier. ...
9 years, 4 months ago (2011-08-23 01:52:02 UTC) #10
cbentzel
http://codereview.chromium.org/7583049/diff/26001/net/base/file_stream_metrics.cc File net/base/file_stream_metrics.cc (right): http://codereview.chromium.org/7583049/diff/26001/net/base/file_stream_metrics.cc#newcode27 net/base/file_stream_metrics.cc:27: int bucket = GetErrorBucket(error); On 2011/08/23 01:52:02, cbentzel wrote: ...
9 years, 3 months ago (2011-08-30 14:48:23 UTC) #11
ahendrickson
http://codereview.chromium.org/7583049/diff/26001/net/base/file_stream_metrics.cc File net/base/file_stream_metrics.cc (right): http://codereview.chromium.org/7583049/diff/26001/net/base/file_stream_metrics.cc#newcode34 net/base/file_stream_metrics.cc:34: UMA_HISTOGRAM_ENUMERATION("FileError.Open", error, max_error); On 2011/08/23 01:52:02, cbentzel wrote: > ...
9 years, 3 months ago (2011-08-31 19:39:52 UTC) #12
cbentzel
LGTM http://codereview.chromium.org/7583049/diff/33001/net/base/file_stream_metrics.h File net/base/file_stream_metrics.h (right): http://codereview.chromium.org/7583049/diff/33001/net/base/file_stream_metrics.h#newcode24 net/base/file_stream_metrics.h:24: // UMA error statistics gathering. Perhaps these should ...
9 years, 3 months ago (2011-08-31 19:53:23 UTC) #13
Randy Smith (Not in Mondays)
Rubber-stamp LGTM based on Chris' review.
9 years, 3 months ago (2011-09-01 16:48:27 UTC) #14
ahendrickson
http://codereview.chromium.org/7583049/diff/33001/net/base/file_stream_metrics.h File net/base/file_stream_metrics.h (right): http://codereview.chromium.org/7583049/diff/33001/net/base/file_stream_metrics.h#newcode24 net/base/file_stream_metrics.h:24: // UMA error statistics gathering. On 2011/08/31 19:53:23, cbentzel ...
9 years, 3 months ago (2011-09-01 18:01:20 UTC) #15
cbentzel
Even more LGTM You can remove the BUG=NONE and TEST=None in the description
9 years, 3 months ago (2011-09-01 18:05:49 UTC) #16
commit-bot: I haz the power
Try job failure for 7583049-39001 (retry) on mac for step "compile" (clobber build). It's a ...
9 years, 3 months ago (2011-09-01 19:39:44 UTC) #17
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
9 years, 3 months ago (2011-09-02 03:54:31 UTC) #18
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
9 years, 3 months ago (2011-09-03 21:58:48 UTC) #19
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
9 years, 3 months ago (2011-09-07 22:42:19 UTC) #20
cbentzel
On 2011/09/07 22:42:19, I haz the power (commit-bot) wrote: > The commit queue went berserk ...
9 years, 3 months ago (2011-09-20 18:26:49 UTC) #21
ahendrickson
Yes, once I figure out what the problem is. Andy On 2011/09/20 18:26:49, cbentzel wrote: ...
9 years, 3 months ago (2011-09-20 18:43:32 UTC) #22
ahendrickson
http://build.chromium.org/p/tryserver.chromium/builders/mac/builds/50257/steps/unit_tests/logs/stdio There are a lot of files open when ExtensionServiceTest.PackExtensionOpenSSLKey runs, and it runs out ...
9 years, 3 months ago (2011-09-20 22:24:31 UTC) #23
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/ahendrickson@chromium.org/7583049/78001
9 years, 3 months ago (2011-09-23 16:33:27 UTC) #24
commit-bot: I haz the power
9 years, 3 months ago (2011-09-23 20:38:23 UTC) #25
Change committed as 102560

Powered by Google App Engine
This is Rietveld 408576698