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

Issue 2503283003: Add high-precision timing histograms. (Closed)

Created:
4 years, 1 month ago by pkalinnikov
Modified:
4 years ago
Reviewers:
engedy, Ilya Sherman
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, asvitkine+watch_chromium.org, rkaplow
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add high-precision timing histograms. BUG=609747 Committed: https://crrev.com/7c84dd6c2273cea47031237046ec001ac7fb75ea Cr-Commit-Position: refs/heads/master@{#435890}

Patch Set 1 #

Total comments: 31

Patch Set 2 : Address comments of engedy@ #

Total comments: 18

Patch Set 3 : Modify BUILD file. Address comments from isherman@. #

Patch Set 4 : Add comment; put microseconds to pretty_print. #

Patch Set 5 : rebase #

Patch Set 6 : Refactor timers and add tests; add document-level aggregation. #

Total comments: 10

Patch Set 7 : Use product name instead of project name. #

Total comments: 12

Patch Set 8 : Address various comments. #

Total comments: 13

Patch Set 9 : Address more comments, rename histograms #

Total comments: 2

Patch Set 10 : Change measurement unit. #

Messages

Total messages: 52 (25 generated)
pkalinnikov
Balazs, please take a first look.
4 years, 1 month ago (2016-11-16 13:38:30 UTC) #1
pkalinnikov
4 years, 1 month ago (2016-11-16 13:38:44 UTC) #3
pkalinnikov
https://codereview.chromium.org/2503283003/diff/1/components/subresource_filter/core/common/scoped_uma_histogram_timers.h File components/subresource_filter/core/common/scoped_uma_histogram_timers.h (right): https://codereview.chromium.org/2503283003/diff/1/components/subresource_filter/core/common/scoped_uma_histogram_timers.h#newcode11 components/subresource_filter/core/common/scoped_uma_histogram_timers.h:11: Add include guards.
4 years, 1 month ago (2016-11-16 13:53:48 UTC) #4
engedy
LGTM % comments. Thanks! https://codereview.chromium.org/2503283003/diff/1/components/subresource_filter/core/common/scoped_uma_histogram_timers.h File components/subresource_filter/core/common/scoped_uma_histogram_timers.h (right): https://codereview.chromium.org/2503283003/diff/1/components/subresource_filter/core/common/scoped_uma_histogram_timers.h#newcode1 components/subresource_filter/core/common/scoped_uma_histogram_timers.h:1: // Copyright 2016 The Chromium ...
4 years, 1 month ago (2016-11-16 14:48:08 UTC) #5
pkalinnikov
Thanks Balazs. Addressed all comments, except the one asking to add time measurements in the ...
4 years, 1 month ago (2016-11-17 15:24:32 UTC) #6
pkalinnikov
Hi Robert, Can you please review the "scoped_uma_histogram_timers.h" file? Macros thereof are used in the ...
4 years, 1 month ago (2016-11-17 15:27:18 UTC) #8
rkaplow
will let ilya review since he's been looking into this on the thread
4 years, 1 month ago (2016-11-18 21:31:16 UTC) #12
Ilya Sherman
https://codereview.chromium.org/2503283003/diff/20001/components/subresource_filter/core/common/scoped_uma_histogram_timers.h File components/subresource_filter/core/common/scoped_uma_histogram_timers.h (right): https://codereview.chromium.org/2503283003/diff/20001/components/subresource_filter/core/common/scoped_uma_histogram_timers.h#newcode33 components/subresource_filter/core/common/scoped_uma_histogram_timers.h:33: // See: "base/metrics/histogram_macros_internal.h". Please document that names passed to ...
4 years, 1 month ago (2016-11-18 22:26:05 UTC) #13
pkalinnikov
https://codereview.chromium.org/2503283003/diff/20001/components/subresource_filter/core/common/scoped_uma_histogram_timers.h File components/subresource_filter/core/common/scoped_uma_histogram_timers.h (right): https://codereview.chromium.org/2503283003/diff/20001/components/subresource_filter/core/common/scoped_uma_histogram_timers.h#newcode33 components/subresource_filter/core/common/scoped_uma_histogram_timers.h:33: // See: "base/metrics/histogram_macros_internal.h". On 2016/11/18 22:26:05, Ilya Sherman wrote: ...
4 years, 1 month ago (2016-11-21 14:51:00 UTC) #14
pkalinnikov
Hi Ilya, Thanks for your comments. Please let me know if it now looks good.
4 years, 1 month ago (2016-11-21 14:55:32 UTC) #15
Ilya Sherman
Thanks! I think the thread-safety is okay, though I'd be more comfortable if someone very ...
4 years, 1 month ago (2016-11-22 00:02:47 UTC) #16
pkalinnikov
Hi Ilia, and thanks again. See commends, I have explicitly marked the code as not ...
4 years ago (2016-11-24 13:40:09 UTC) #17
pkalinnikov
> Hi Ilia, and thanks again. I mean Ilya, sorry.
4 years ago (2016-11-24 13:41:09 UTC) #18
pkalinnikov
Hey Balazs and Ilya, Please take another look. I decoupled time reporting from the scoped ...
4 years ago (2016-11-28 13:48:18 UTC) #21
pkalinnikov
https://codereview.chromium.org/2503283003/diff/120001/components/subresource_filter/core/common/scoped_timers_unittest.cc File components/subresource_filter/core/common/scoped_timers_unittest.cc (right): https://codereview.chromium.org/2503283003/diff/120001/components/subresource_filter/core/common/scoped_timers_unittest.cc#newcode85 components/subresource_filter/core/common/scoped_timers_unittest.cc:85: SCOPED_UMA_HISTOGRAM_MICRO_TIMER("ScopedTimers.MicroTimer"); Should I do something to suppress the following ...
4 years ago (2016-11-28 13:58:36 UTC) #22
engedy
Still LGTM % comments. https://codereview.chromium.org/2503283003/diff/100001/components/subresource_filter/content/renderer/document_subresource_filter.h File components/subresource_filter/content/renderer/document_subresource_filter.h (right): https://codereview.chromium.org/2503283003/diff/100001/components/subresource_filter/content/renderer/document_subresource_filter.h#newcode44 components/subresource_filter/content/renderer/document_subresource_filter.h:44: // Time aggregates for all ...
4 years ago (2016-11-28 14:29:26 UTC) #23
Ilya Sherman
Thanks for following up on the thread-safety concern! It's a bit hard for me to ...
4 years ago (2016-11-29 03:02:48 UTC) #24
pkalinnikov
Hi Ilya and Balazs, Thanks for your comments. isherman@: I added SCOPED_*TIMER macros and also ...
4 years ago (2016-11-30 10:13:48 UTC) #31
engedy
LGTM % comments. Ranges look good. https://codereview.chromium.org/2503283003/diff/140001/components/subresource_filter/content/renderer/subresource_filter_agent.cc File components/subresource_filter/content/renderer/subresource_filter_agent.cc (right): https://codereview.chromium.org/2503283003/diff/140001/components/subresource_filter/content/renderer/subresource_filter_agent.cc#newcode97 components/subresource_filter/content/renderer/subresource_filter_agent.cc:97: UMA_HISTOGRAM_CUSTOM_MICRO_TIMES( Please update ...
4 years ago (2016-11-30 12:42:28 UTC) #34
Ilya Sherman
This CL honestly adds a lot more macro and template magic than I'd prefer. However, ...
4 years ago (2016-12-01 05:39:08 UTC) #35
pkalinnikov
Hello and thanks again for your comments. isherman@: Indeed the amount of magic is big, ...
4 years ago (2016-12-01 16:02:48 UTC) #36
engedy
LGTM % nit, thanks! Histogram desciptions are perfectly fine, let's not change them for a ...
4 years ago (2016-12-01 18:20:46 UTC) #37
pkalinnikov
Changed unit of measurement. https://codereview.chromium.org/2503283003/diff/160001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2503283003/diff/160001/tools/metrics/histograms/histograms.xml#newcode63612 tools/metrics/histograms/histograms.xml:63612: + units="ms"> On 2016/12/01 18:20:46, ...
4 years ago (2016-12-01 22:21:39 UTC) #41
Ilya Sherman
(Still LGTM, thanks)
4 years ago (2016-12-02 01:37:35 UTC) #44
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/2503283003/180001
4 years ago (2016-12-02 08:59:37 UTC) #47
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years ago (2016-12-02 09:05:05 UTC) #50
commit-bot: I haz the power
4 years ago (2016-12-02 09:07:31 UTC) #52
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/7c84dd6c2273cea47031237046ec001ac7fb75ea
Cr-Commit-Position: refs/heads/master@{#435890}

Powered by Google App Engine
This is Rietveld 408576698