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

Issue 1707513002: Add various UMA histograms for measuring GCM crypto performance (Closed)

Created:
4 years, 10 months ago by Peter Beverloo
Modified:
4 years, 10 months ago
Reviewers:
johnme, Ilya Sherman
CC:
chromium-reviews, asvitkine+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@gcm-remove-info
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add various UMA histograms for measuring GCM crypto performance This adds (and tests) UMA in the GCMKeyStore, an on-disk database, and the decryption routines part of the GCMEncryptionProvider and the GCMMessageCryptographer. Adding the metrics comes with an extra free refactoring adjusting the message-received flow to make it cleaner to measure them. BUG=486040 Committed: https://crrev.com/266a2aa40f2fb11662afe0af694b4be0cfb3efe4 Cr-Commit-Position: refs/heads/master@{#376501}

Patch Set 1 #

Patch Set 2 : make gn happy #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 2

Patch Set 5 : android fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -148 lines) Patch
M components/gcm_driver/crypto/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/gcm_driver/crypto/gcm_encryption_provider.h View 3 chunks +33 lines, -27 lines 0 comments Download
M components/gcm_driver/crypto/gcm_encryption_provider.cc View 10 chunks +35 lines, -27 lines 0 comments Download
M components/gcm_driver/crypto/gcm_encryption_provider_unittest.cc View 7 chunks +32 lines, -48 lines 0 comments Download
M components/gcm_driver/crypto/gcm_key_store.cc View 6 chunks +10 lines, -2 lines 0 comments Download
M components/gcm_driver/crypto/gcm_key_store_unittest.cc View 8 chunks +31 lines, -1 line 0 comments Download
M components/gcm_driver/fake_gcm_client.h View 1 chunk +1 line, -1 line 0 comments Download
M components/gcm_driver/fake_gcm_client.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/gcm_driver/fake_gcm_driver.h View 1 chunk +1 line, -1 line 0 comments Download
M components/gcm_driver/fake_gcm_driver.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/gcm_driver/gcm_client.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/gcm_driver/gcm_client_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M components/gcm_driver/gcm_client_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/gcm_driver/gcm_driver.h View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M components/gcm_driver/gcm_driver.cc View 1 2 3 2 chunks +26 lines, -9 lines 0 comments Download
M components/gcm_driver/gcm_driver_android.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/gcm_driver/gcm_driver_android.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/gcm_driver/gcm_driver_desktop.h View 1 chunk +1 line, -1 line 0 comments Download
M components/gcm_driver/gcm_driver_desktop.cc View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M components/gcm_driver/gcm_stats_recorder_android.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/gcm_driver/gcm_stats_recorder_android.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M components/gcm_driver/gcm_stats_recorder_android_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/gcm_driver/gcm_stats_recorder_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/gcm_driver/gcm_stats_recorder_impl.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M components/gcm_driver/gcm_stats_recorder_impl_unittest.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 2 chunks +53 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
Peter Beverloo
+johnme for first review
4 years, 10 months ago (2016-02-16 21:40:45 UTC) #2
johnme
lgtm with nits https://codereview.chromium.org/1707513002/diff/40001/components/gcm_driver/fake_gcm_client.cc File components/gcm_driver/fake_gcm_client.cc (right): https://codereview.chromium.org/1707513002/diff/40001/components/gcm_driver/fake_gcm_client.cc#newcode164 components/gcm_driver/fake_gcm_client.cc:164: recorder_.RecordDecryptionFailure(app_id, result); Why does the fake ...
4 years, 10 months ago (2016-02-18 17:59:38 UTC) #3
Peter Beverloo
Thanks John! +isherman https://codereview.chromium.org/1707513002/diff/40001/components/gcm_driver/fake_gcm_client.cc File components/gcm_driver/fake_gcm_client.cc (right): https://codereview.chromium.org/1707513002/diff/40001/components/gcm_driver/fake_gcm_client.cc#newcode164 components/gcm_driver/fake_gcm_client.cc:164: recorder_.RecordDecryptionFailure(app_id, result); On 2016/02/18 17:59:38, johnme ...
4 years, 10 months ago (2016-02-18 21:22:59 UTC) #5
Ilya Sherman
Metrics LGTM https://codereview.chromium.org/1707513002/diff/60001/components/gcm_driver/gcm_driver.cc File components/gcm_driver/gcm_driver.cc (right): https://codereview.chromium.org/1707513002/diff/60001/components/gcm_driver/gcm_driver.cc#newcode287 components/gcm_driver/gcm_driver.cc:287: GCMEncryptionProvider::DECRYPTION_RESULT_LAST + 1); Optional nit: I generally ...
4 years, 10 months ago (2016-02-18 21:54:40 UTC) #6
johnme
https://codereview.chromium.org/1707513002/diff/60001/components/gcm_driver/gcm_driver.cc File components/gcm_driver/gcm_driver.cc (right): https://codereview.chromium.org/1707513002/diff/60001/components/gcm_driver/gcm_driver.cc#newcode287 components/gcm_driver/gcm_driver.cc:287: GCMEncryptionProvider::DECRYPTION_RESULT_LAST + 1); On 2016/02/18 21:54:40, Ilya Sherman wrote: ...
4 years, 10 months ago (2016-02-19 10:24:13 UTC) #7
Peter Beverloo
On 2016/02/19 10:24:13, johnme wrote: > https://codereview.chromium.org/1707513002/diff/60001/components/gcm_driver/gcm_driver.cc > File components/gcm_driver/gcm_driver.cc (right): > > https://codereview.chromium.org/1707513002/diff/60001/components/gcm_driver/gcm_driver.cc#newcode287 > ...
4 years, 10 months ago (2016-02-19 10:28:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1707513002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1707513002/60001
4 years, 10 months ago (2016-02-19 10:29:29 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/24347) android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, ...
4 years, 10 months ago (2016-02-19 10:51:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1707513002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1707513002/80001
4 years, 10 months ago (2016-02-19 11:19:22 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/25759)
4 years, 10 months ago (2016-02-19 15:16:23 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1707513002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1707513002/80001
4 years, 10 months ago (2016-02-19 17:24:37 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 10 months ago (2016-02-19 18:51:48 UTC) #21
commit-bot: I haz the power
4 years, 10 months ago (2016-02-19 18:53:14 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/266a2aa40f2fb11662afe0af694b4be0cfb3efe4
Cr-Commit-Position: refs/heads/master@{#376501}

Powered by Google App Engine
This is Rietveld 408576698