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

Issue 12316146: Expose global state variables for sampling tracing to WebKit (Closed)

Created:
7 years, 10 months ago by haraken
Modified:
7 years, 9 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, darin-cc_chromium.org, abarth-chromium
Visibility:
Public.

Description

Expose global state variables for sampling tracing to WebKit We are implementing TRACE_EVENT macros for sampling profiling. It works in the following mechanism: - Chromium defines global state variables for sampling profiling. (i.e. g_trace_state0, g_trace_state1, g_trace_state2 in trace_event.h) - WebKit gets the addresses of the global state variables at the initialization step. (i.e. EventTracer::initialize()) - WebKit updates the global states by using TRACE_EVENT_SAMPLING_STATE() macros every time WebKit changes its state. (e.g. DOM attribute getters/setters/methods) - A sampling thread running in Chrome reads the global states periodically and visualizes the profiling results into about://tracing. In this issue, we make a Chromium side change to implement a WebKit API to get the addresses of the global states. The WebKit patch is here: https://bugs.webkit.org/show_bug.cgi?id=110932 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186162

Patch Set 1 #

Patch Set 2 : Updated nits #

Total comments: 2

Patch Set 3 : Fixed return types #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -1 line) Patch
M webkit/glue/webkitplatformsupport_impl.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/glue/webkitplatformsupport_impl.cc View 1 2 2 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
haraken
nduca, scottmg: Would you take a look before a formal review? The WebKit side patch ...
7 years, 10 months ago (2013-02-27 02:35:07 UTC) #1
abarth-chromium
https://codereview.chromium.org/12316146/diff/2001/webkit/glue/webkitplatformsupport_impl.cc File webkit/glue/webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/12316146/diff/2001/webkit/glue/webkitplatformsupport_impl.cc#newcode457 webkit/glue/webkitplatformsupport_impl.cc:457: switch(thread_bucket) { Is this really better than a branch ...
7 years, 10 months ago (2013-02-27 02:58:00 UTC) #2
haraken
https://codereview.chromium.org/12316146/diff/2001/webkit/glue/webkitplatformsupport_impl.cc File webkit/glue/webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/12316146/diff/2001/webkit/glue/webkitplatformsupport_impl.cc#newcode457 webkit/glue/webkitplatformsupport_impl.cc:457: switch(thread_bucket) { On 2013/02/27 02:58:00, abarth wrote: > Is ...
7 years, 10 months ago (2013-02-27 03:29:55 UTC) #3
scottmg
lgtm
7 years, 9 months ago (2013-03-04 23:33:40 UTC) #4
haraken
On 2013/03/04 23:33:40, scottmg wrote: > lgtm Thanks! brettw: Would you take a look as ...
7 years, 9 months ago (2013-03-04 23:41:19 UTC) #5
brettw
LGTM rubberstamp
7 years, 9 months ago (2013-03-05 00:45:14 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/12316146/2001
7 years, 9 months ago (2013-03-05 09:34:35 UTC) #7
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-05 09:56:16 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/12316146/10003
7 years, 9 months ago (2013-03-05 10:27:41 UTC) #9
commit-bot: I haz the power
7 years, 9 months ago (2013-03-05 12:38:29 UTC) #10
Message was sent while issue was closed.
Change committed as 186162

Powered by Google App Engine
This is Rietveld 408576698