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

Issue 1829973002: Cache pointers to histograms for recording event times. (Closed)

Created:
4 years, 9 months ago by bcwhite
Modified:
4 years, 8 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cache pointers to histograms for recording event times. Doing a FactoryGet for every UI event (including every mouse-move event) is expensive and unnecessary. This will reduce the time spent updating the histogram from about 5us to about 0.8us (measured on Z620). A reusable macro is added to allow any enumerated block of histograms to be cached. BUG=597011 Committed: https://crrev.com/2f96a2fc9c9a3676d457ad4c95631031613cb19f Cr-Commit-Position: refs/heads/master@{#386086}

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebased #

Patch Set 3 : move macro into only .cc file in which it's (currently) used #

Patch Set 4 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -9 lines) Patch
M ui/events/event.cc View 1 2 2 chunks +43 lines, -9 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 27 (14 generated)
bcwhite
4 years, 9 months ago (2016-03-23 22:00:34 UTC) #5
Alexei Svitkine (slow)
https://codereview.chromium.org/1829973002/diff/1/base/metrics/histogram_macros.h File base/metrics/histogram_macros.h (right): https://codereview.chromium.org/1829973002/diff/1/base/metrics/histogram_macros.h#newcode112 base/metrics/histogram_macros.h:112: // Support a collection of histograms, perhaps one for ...
4 years, 8 months ago (2016-03-30 16:47:38 UTC) #6
bcwhite
https://codereview.chromium.org/1829973002/diff/1/base/metrics/histogram_macros.h File base/metrics/histogram_macros.h (right): https://codereview.chromium.org/1829973002/diff/1/base/metrics/histogram_macros.h#newcode112 base/metrics/histogram_macros.h:112: // Support a collection of histograms, perhaps one for ...
4 years, 8 months ago (2016-03-30 17:33:08 UTC) #7
Alexei Svitkine (slow)
https://codereview.chromium.org/1829973002/diff/1/base/metrics/histogram_macros.h File base/metrics/histogram_macros.h (right): https://codereview.chromium.org/1829973002/diff/1/base/metrics/histogram_macros.h#newcode112 base/metrics/histogram_macros.h:112: // Support a collection of histograms, perhaps one for ...
4 years, 8 months ago (2016-04-06 19:57:17 UTC) #8
bcwhite
https://codereview.chromium.org/1829973002/diff/1/base/metrics/histogram_macros.h File base/metrics/histogram_macros.h (right): https://codereview.chromium.org/1829973002/diff/1/base/metrics/histogram_macros.h#newcode112 base/metrics/histogram_macros.h:112: // Support a collection of histograms, perhaps one for ...
4 years, 8 months ago (2016-04-07 16:37:42 UTC) #12
Alexei Svitkine (slow)
lgtm
4 years, 8 months ago (2016-04-07 16:41:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1829973002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1829973002/100001
4 years, 8 months ago (2016-04-07 17:10:18 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/165841)
4 years, 8 months ago (2016-04-07 17:20:24 UTC) #17
bcwhite
sadrul@chromium.org: Please review changes in events.cc
4 years, 8 months ago (2016-04-07 17:24:59 UTC) #19
sadrul
stamp lgtm
4 years, 8 months ago (2016-04-08 14:22:19 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1829973002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1829973002/120001
4 years, 8 months ago (2016-04-08 14:31:39 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:120001)
4 years, 8 months ago (2016-04-08 15:35:32 UTC) #25
commit-bot: I haz the power
4 years, 8 months ago (2016-04-08 15:36:44 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2f96a2fc9c9a3676d457ad4c95631031613cb19f
Cr-Commit-Position: refs/heads/master@{#386086}

Powered by Google App Engine
This is Rietveld 408576698