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

Issue 18587004: Add a sampling tracing to RenderWidget::DoDeferredUpdate (Closed)

Created:
7 years, 5 months ago by haraken
Modified:
7 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, jam
Visibility:
Public.

Description

Add a sampling tracing to RenderWidget::DoDeferredUpdate - This CL implements TraceEventSamplingState0Scope for scoped sampling. The implementation is the same as TraceEvent.h in Blink. - This CL renames TRACE_EVENT_SAMPLE_STATE to TRACE_EVENT_SAMPLING_STATE, to make the name consistent with the macros in Blink. TEST=TraceEventTestFixture.TraceSamplingScope BUG=241743 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210160

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 10

Patch Set 5 : #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -18 lines) Patch
M base/debug/trace_event.h View 1 2 3 4 5 6 3 chunks +73 lines, -9 lines 0 comments Download
M base/debug/trace_event_impl.cc View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download
M base/debug/trace_event_unittest.cc View 1 2 3 4 5 6 3 chunks +43 lines, -3 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
haraken
PTAL
7 years, 5 months ago (2013-07-03 02:10:08 UTC) #1
scottmg
https://codereview.chromium.org/18587004/diff/2001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/18587004/diff/2001/base/debug/trace_event.h#newcode790 base/debug/trace_event.h:790: static inline const char* current() In chromium code, these ...
7 years, 5 months ago (2013-07-03 02:16:10 UTC) #2
haraken
Thanks for reviewing! Uploaded the CL. PTAL. https://codereview.chromium.org/18587004/diff/2001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/18587004/diff/2001/base/debug/trace_event.h#newcode790 base/debug/trace_event.h:790: static inline ...
7 years, 5 months ago (2013-07-03 02:38:50 UTC) #3
scottmg
otherwise, lgtm (but I'm not an OWNER for base/debug) https://codereview.chromium.org/18587004/diff/7001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/18587004/diff/7001/base/debug/trace_event.h#newcode779 base/debug/trace_event.h:779: ...
7 years, 5 months ago (2013-07-03 02:40:45 UTC) #4
haraken
nduca: would you take a look at base/debug as an OWNER? jochen: would you take ...
7 years, 5 months ago (2013-07-03 02:46:04 UTC) #5
scottmg
(thanks for cleaning up those badly parameterized macros!)
7 years, 5 months ago (2013-07-03 02:51:43 UTC) #6
nduca
Hmm sorry for the pile of questions https://codereview.chromium.org/18587004/diff/11001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/18587004/diff/11001/base/debug/trace_event.h#newcode302 base/debug/trace_event.h:302: #define TRACE_EVENT_SAMPLING_STATE0(category, ...
7 years, 5 months ago (2013-07-03 05:34:24 UTC) #7
haraken
Thanks for reviewing! Updated the CL. PTAL. https://codereview.chromium.org/18587004/diff/11001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/18587004/diff/11001/base/debug/trace_event.h#newcode302 base/debug/trace_event.h:302: #define TRACE_EVENT_SAMPLING_STATE0(category, ...
7 years, 5 months ago (2013-07-03 07:33:15 UTC) #8
nduca
thank you. one clarification... assuming you can fold the #if split into the .h files ...
7 years, 5 months ago (2013-07-03 09:54:34 UTC) #9
haraken
jochen: would you rubber-stamp content/renderer/ ? https://codereview.chromium.org/18587004/diff/19001/base/debug/trace_event.h File base/debug/trace_event.h (right): https://codereview.chromium.org/18587004/diff/19001/base/debug/trace_event.h#newcode311 base/debug/trace_event.h:311: // TRACE_EVENT_SAMPLING_STATE_SCOPE_FOR_BUCKET(0, "category", ...
7 years, 5 months ago (2013-07-04 02:03:15 UTC) #10
jochen (gone - plz use gerrit)
lgtm
7 years, 5 months ago (2013-07-04 04:02:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/18587004/24001
7 years, 5 months ago (2013-07-04 04:37:51 UTC) #12
commit-bot: I haz the power
7 years, 5 months ago (2013-07-04 08:54:09 UTC) #13
Message was sent while issue was closed.
Change committed as 210160

Powered by Google App Engine
This is Rietveld 408576698