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

Issue 313613003: Increase "log too large" threshold in MetricsService. (Closed)

Created:
6 years, 6 months ago by Alexei Svitkine (slow)
Modified:
6 years, 6 months ago
Reviewers:
Ilya Sherman
CC:
chromium-reviews, Ilya Sherman, asvitkine+watch_chromium.org, jar+watch_chromium.org, vadimt
Visibility:
Public.

Description

Increase "log too large" threshold in MetricsService. Current value is at 50k, which is actually the average log size on a lot of platforms. Increase it to 100k for a more reasonable default that should cover the majority of cases where logs are discarded due to this size limit according to UMA data. BUG=380282 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278612

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M components/metrics/metrics_service.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
Alexei Svitkine (slow)
6 years, 6 months ago (2014-06-03 18:41:04 UTC) #1
Ilya Sherman
https://codereview.chromium.org/313613003/diff/1/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (right): https://codereview.chromium.org/313613003/diff/1/chrome/browser/metrics/metrics_service.cc#newcode250 chrome/browser/metrics/metrics_service.cc:250: const size_t kUploadLogAvoidRetransmitSize = 250000; Optional nit: This might ...
6 years, 6 months ago (2014-06-03 19:51:49 UTC) #2
Alexei Svitkine (slow)
Responding to one comment for now, will look at the others in a bit. https://codereview.chromium.org/313613003/diff/1/chrome/browser/metrics/metrics_service.cc ...
6 years, 6 months ago (2014-06-03 19:56:46 UTC) #3
Ilya Sherman
https://codereview.chromium.org/313613003/diff/1/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (right): https://codereview.chromium.org/313613003/diff/1/chrome/browser/metrics/metrics_service.cc#newcode250 chrome/browser/metrics/metrics_service.cc:250: const size_t kUploadLogAvoidRetransmitSize = 250000; On 2014/06/03 19:56:45, Alexei ...
6 years, 6 months ago (2014-06-03 20:25:19 UTC) #4
Alexei Svitkine (slow)
On 2014/06/03 20:25:19, Ilya Sherman wrote: > https://codereview.chromium.org/313613003/diff/1/chrome/browser/metrics/metrics_service.cc > File chrome/browser/metrics/metrics_service.cc (right): > > https://codereview.chromium.org/313613003/diff/1/chrome/browser/metrics/metrics_service.cc#newcode250 ...
6 years, 6 months ago (2014-06-03 20:46:18 UTC) #5
Alexei Svitkine (slow)
On 2014/06/03 20:46:18, Alexei Svitkine wrote: > On 2014/06/03 20:25:19, Ilya Sherman wrote: > > ...
6 years, 6 months ago (2014-06-03 21:09:34 UTC) #6
Ilya Sherman
On 2014/06/03 21:09:34, Alexei Svitkine wrote: > On 2014/06/03 20:46:18, Alexei Svitkine wrote: > > ...
6 years, 6 months ago (2014-06-03 21:32:16 UTC) #7
vadimt
Some of ideas regarding profiler data, not necessary for near-term implementation: 1. We can focus ...
6 years, 6 months ago (2014-06-04 02:31:17 UTC) #8
vadimt
Not junk, jank :)
6 years, 6 months ago (2014-06-04 13:49:55 UTC) #9
Alexei Svitkine (slow)
I'll take a look at compressing logs before they're stored to local state and also ...
6 years, 6 months ago (2014-06-05 14:35:25 UTC) #10
Ilya Sherman
That plan sounds good. Thanks, Alexei!
6 years, 6 months ago (2014-06-05 18:18:47 UTC) #11
Alexei Svitkine (slow)
Now that the compression change landed, we're still seeing discarded logs but almost all of ...
6 years, 6 months ago (2014-06-17 19:34:53 UTC) #12
Ilya Sherman
Should we bump kStorageByteLimitPerLogType as well? https://codereview.chromium.org/313613003/diff/20001/components/metrics/metrics_service.cc File components/metrics/metrics_service.cc (right): https://codereview.chromium.org/313613003/diff/20001/components/metrics/metrics_service.cc#newcode225 components/metrics/metrics_service.cc:225: const size_t kUploadLogAvoidRetransmitSize ...
6 years, 6 months ago (2014-06-17 21:02:48 UTC) #13
Alexei Svitkine (slow)
I think we don't need to bump kStorageByteLimitPerLogType, since the logic is to keep the ...
6 years, 6 months ago (2014-06-19 19:28:36 UTC) #14
Ilya Sherman
Makes sense. LGTM. Thanks, Alexei.
6 years, 6 months ago (2014-06-19 21:01:53 UTC) #15
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 6 months ago (2014-06-19 21:02:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/313613003/40001
6 years, 6 months ago (2014-06-19 21:04:17 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 6 months ago (2014-06-20 02:43:41 UTC) #18
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 05:22:38 UTC) #19
Message was sent while issue was closed.
Change committed as 278612

Powered by Google App Engine
This is Rietveld 408576698