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

Issue 2790063004: [Cronet] Initialize StatisticsRecorder early (Closed)

Created:
3 years, 8 months ago by xunjieli
Modified:
3 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Cronet] Initialize StatisticsRecorder early StatisticsRecorder must be initialized before histograms are emitted. Otherwise, StatisticsRecorder::FactoryGet() leaks one histogram per call for a given name. BUG=707836 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Review-Url: https://codereview.chromium.org/2790063004 Cr-Commit-Position: refs/heads/master@{#462185} Committed: https://chromium.googlesource.com/chromium/src/+/7e64a797f7b6b4fb54536bbbc4c809c4fc6da3e1

Patch Set 1 #

Patch Set 2 : ios #

Total comments: 1

Patch Set 3 : fix tests #

Patch Set 4 : fix iOS #

Patch Set 5 : unstage ios due to breakage ToT #

Total comments: 2

Patch Set 6 : Address pauljensen comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M components/cronet/android/cronet_library_loader.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M components/cronet/android/cronet_url_request_context_adapter.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (7 generated)
xunjieli
Paul, could you do a first pass? Thanks! https://codereview.chromium.org/2790063004/diff/20001/components/cronet/android/cronet_library_loader.cc File components/cronet/android/cronet_library_loader.cc (right): https://codereview.chromium.org/2790063004/diff/20001/components/cronet/android/cronet_library_loader.cc#newcode106 components/cronet/android/cronet_library_loader.cc:106: base::StatisticsRecorder::Initialize(); ...
3 years, 8 months ago (2017-04-03 18:39:39 UTC) #3
xunjieli
I reverted the iOS portion because one of the iOS test is currently failing due ...
3 years, 8 months ago (2017-04-04 17:38:48 UTC) #5
pauljensen
Is this going to slow things down for Cronet embedders that never call CronetEngine.getGlobalMetricsDeltas()? We ...
3 years, 8 months ago (2017-04-04 19:11:13 UTC) #6
xunjieli
+asvitkine@ could you comment on the question below? > Is this going to slow things ...
3 years, 8 months ago (2017-04-04 19:39:57 UTC) #8
Alexei Svitkine (slow)
lgtm
3 years, 8 months ago (2017-04-04 21:31:31 UTC) #9
pauljensen
Alexei, could you answer the question posed in message #6? https://codereview.chromium.org/2790063004/#msg6
3 years, 8 months ago (2017-04-05 02:48:28 UTC) #10
Alexei Svitkine (slow)
"I am not sure if there's a switch to turn histograms logging off. +asvitkine to ...
3 years, 8 months ago (2017-04-05 14:33:05 UTC) #11
pauljensen
I was specifically asking about message #6 https://codereview.chromium.org/2790063004/#msg6 "Is this going to slow things down ...
3 years, 8 months ago (2017-04-05 15:16:44 UTC) #12
pauljensen
On 2017/04/05 15:16:44, pauljensen wrote: > I was specifically asking about message #6 > https://codereview.chromium.org/2790063004/#msg6 ...
3 years, 8 months ago (2017-04-05 15:18:07 UTC) #13
Alexei Svitkine (slow)
No, I don't think there will be extra slow down because of this. In fact, ...
3 years, 8 months ago (2017-04-05 17:59:12 UTC) #14
pauljensen
lgtm
3 years, 8 months ago (2017-04-05 18:37:20 UTC) #15
xunjieli
Thank you both. I will upload a CL to clean up iOS side.
3 years, 8 months ago (2017-04-05 18:46:57 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2790063004/120001
3 years, 8 months ago (2017-04-05 18:47:21 UTC) #18
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 19:44:23 UTC) #21
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/7e64a797f7b6b4fb54536bbbc4c8...

Powered by Google App Engine
This is Rietveld 408576698