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

Issue 12252058: Add a |scope| argument to TRACE_EVENT_INSTANT* and require its presence. (Closed)

Created:
7 years, 10 months ago by James Simonsen
Modified:
7 years, 1 month ago
CC:
chromium-reviews, jam, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, erikwright+watch_chromium.org
Visibility:
Public.

Description

Add a |scope| argument to TRACE_EVENT_INSTANT* and require its presence. The scope indicates how long the vertical line should be in the tracing UI. It can be global (full screen), process or thread (fill those tracks), or local (the original style for INSTANT). BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190577

Patch Set 1 #

Patch Set 2 : Use flags to record scope #

Total comments: 1

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : Fix other builds #

Patch Set 7 : Fix builds 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -141 lines) Patch
M base/debug/trace_event_impl.cc View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M base/debug/trace_event_internal.h View 1 2 3 4 5 6 6 chunks +51 lines, -31 lines 0 comments Download
M base/debug/trace_event_unittest.cc View 1 2 22 chunks +83 lines, -52 lines 0 comments Download
M base/test/trace_event_analyzer_unittest.cc View 1 2 7 chunks +30 lines, -21 lines 0 comments Download
M cc/animation/animation.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/base/worker_pool.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M cc/layers/scrollbar_layer.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 3 chunks +13 lines, -7 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/test/base/tracing_browsertest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/perf/rendering/latency_tests.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/compositing_iosurface_mac.mm View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/web_contents_video_capture_device.cc View 1 2 3 4 4 chunks +5 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 chunks +7 lines, -3 lines 0 comments Download
M content/common/android/trace_event_binding.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M content/common/gpu/image_transport_surface.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 3 chunks +4 lines, -1 line 0 comments Download
M ui/gl/gl_surface_glx.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M ui/surface/accelerated_surface_win.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
James Simonsen
Should this have been an optional parameter instead? Also, let me know if you have ...
7 years, 10 months ago (2013-02-15 03:47:14 UTC) #1
nduca
Can we get the scope in on the flags argument of AddTraceEvent instead of tweaking ...
7 years, 10 months ago (2013-02-15 19:30:56 UTC) #2
nduca
thread scope?
7 years, 10 months ago (2013-02-15 19:31:22 UTC) #3
James Simonsen
On 2013/02/15 19:31:22, nduca wrote: > thread scope? I already have that. :( There's: 1. ...
7 years, 10 months ago (2013-02-16 02:01:34 UTC) #4
nduca
Hmm, eliminate it. It never worked well anyway. :)
7 years, 10 months ago (2013-02-16 02:12:43 UTC) #5
James Simonsen
On 2013/02/15 19:30:56, nduca wrote: > Can we get the scope in on the flags ...
7 years, 10 months ago (2013-02-20 20:15:32 UTC) #6
nduca
I like this. LGTM. https://codereview.chromium.org/12252058/diff/6001/base/debug/trace_event_internal.h File base/debug/trace_event_internal.h (right): https://codereview.chromium.org/12252058/diff/6001/base/debug/trace_event_internal.h#newcode717 base/debug/trace_event_internal.h:717: #define TRACE_SCOPE_NAME_GLOBAL ('g') I think ...
7 years, 10 months ago (2013-02-21 06:06:04 UTC) #7
nduca
Is this landable?
7 years, 9 months ago (2013-03-13 06:02:50 UTC) #8
James Simonsen
On 2013/03/13 06:02:50, nduca wrote: > Is this landable? Yeah, I probably just need to ...
7 years, 9 months ago (2013-03-14 23:24:12 UTC) #9
nduca
Probably safe. Worst case someone complains and we write a quick fix to the UI ...
7 years, 9 months ago (2013-03-19 00:06:58 UTC) #10
James Simonsen
Need a rubber-stamp lgtm from OWNERS for the Trace Event API change. Suggested OWNERS: kbr@chromium.org ...
7 years, 9 months ago (2013-03-21 23:14:05 UTC) #11
Ken Russell (switch to Gerrit)
LGTM for the parts I own.
7 years, 9 months ago (2013-03-22 01:02:21 UTC) #12
darin (slow to review)
OK, LGTM
7 years, 9 months ago (2013-03-23 14:30:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonjam@chromium.org/12252058/14001
7 years, 9 months ago (2013-03-25 17:36:32 UTC) #14
commit-bot: I haz the power
Failed to apply patch for cc/animation/animation.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-25 17:36:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonjam@chromium.org/12252058/22001
7 years, 9 months ago (2013-03-25 17:51:06 UTC) #16
commit-bot: I haz the power
Failed to apply patch for cc/animation/animation.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-25 17:51:16 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonjam@chromium.org/12252058/27001
7 years, 9 months ago (2013-03-25 18:18:42 UTC) #18
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-25 18:54:27 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonjam@chromium.org/12252058/56001
7 years, 9 months ago (2013-03-26 04:52:32 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonjam@chromium.org/12252058/56001
7 years, 9 months ago (2013-03-26 06:49:10 UTC) #21
commit-bot: I haz the power
Change committed as 190577
7 years, 9 months ago (2013-03-26 07:42:44 UTC) #22
caseq
On 2013/03/19 00:06:58, nduca wrote: > Probably safe. Worst case someone complains and we write ...
7 years, 2 months ago (2013-10-21 16:38:43 UTC) #23
James Simonsen
On 2013/10/21 16:38:43, caseq wrote: > On 2013/03/19 00:06:58, nduca wrote: > > Probably safe. ...
7 years, 2 months ago (2013-10-23 20:45:23 UTC) #24
caseq
On 2013/10/23 20:45:23, James Simonsen wrote: > We should support both. We want to be ...
7 years, 1 month ago (2013-10-28 07:44:39 UTC) #25
James Simonsen
7 years, 1 month ago (2013-10-28 19:26:32 UTC) #26
Message was sent while issue was closed.
On 2013/10/28 07:44:39, caseq wrote:
> On 2013/10/23 20:45:23, James Simonsen wrote:
>  
> > We should support both. We want to be able to load old trace files that use
> the
> > old 'I' format.
> 
> I agree we should support both on the trace-viewer side. The question is
whether
> we should _produce_ both, and whether the code that only handles trace events
> currently being generated should support both. I suggest we revert to 'I' for
> base/debug/trace_event.h -- are you ok with that?

I thought the difference is that 'i' has the newly required scope arg and 'I'
doesn't.

Powered by Google App Engine
This is Rietveld 408576698