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

Issue 9181002: Track parent-child relations during profiling (Closed)

Created:
8 years, 11 months ago by jar (doing other things)
Modified:
8 years, 10 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, Ilya Sherman
Visibility:
Public.

Description

Propogate status setting for profiler to track parents This allows child processes to track ancestry, and report it to the browser process. Parent tracking is only turned on based on an environment variable. r=rtenneti Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120789

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 2

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 2

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -64 lines) Patch
M base/profiler/tracked_time_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +4 lines, -3 lines 0 comments Download
M base/tracked_objects.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -4 lines 0 comments Download
M base/tracked_objects.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +17 lines, -14 lines 0 comments Download
M base/tracked_objects_unittest.cc View 1 2 3 4 5 6 7 8 9 10 17 chunks +31 lines, -18 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -2 lines 0 comments Download
M content/browser/profiler_controller_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +6 lines, -3 lines 0 comments Download
M content/browser/profiler_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +8 lines, -6 lines 0 comments Download
M content/browser/profiler_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -2 lines 0 comments Download
M content/common/child_process_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -2 lines 0 comments Download
M content/common/child_thread.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -2 lines 0 comments Download
M content/common/child_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -3 lines 0 comments Download
M content/public/browser/profiler_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jar (doing other things)
Raman, This supports communicating of status that we are tracking parent-child relationships across sub processes ...
8 years, 11 months ago (2012-01-28 00:18:00 UTC) #1
ramant (doing other things)
LGTM http://codereview.chromium.org/9181002/diff/38019/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): http://codereview.chromium.org/9181002/diff/38019/chrome/browser/chrome_browser_main.cc#newcode1167 chrome/browser/chrome_browser_main.cc:1167: tracked_objects::ThreadData::InitializeAndSetTrackingStatus(status); nit: It looks like this change calls ...
8 years, 11 months ago (2012-01-28 02:09:55 UTC) #2
jar (doing other things)
Reply to comment by rtennneti. http://codereview.chromium.org/9181002/diff/38019/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): http://codereview.chromium.org/9181002/diff/38019/chrome/browser/chrome_browser_main.cc#newcode1167 chrome/browser/chrome_browser_main.cc:1167: tracked_objects::ThreadData::InitializeAndSetTrackingStatus(status); Lazy initialization really ...
8 years, 10 months ago (2012-01-30 20:41:56 UTC) #3
jar (doing other things)
John, Looking for an OWNER review for content. Thanks!
8 years, 10 months ago (2012-02-06 23:15:04 UTC) #4
jam
content lgtm with one comment http://codereview.chromium.org/9181002/diff/46001/content/public/browser/profiler_controller.h File content/public/browser/profiler_controller.h (right): http://codereview.chromium.org/9181002/diff/46001/content/public/browser/profiler_controller.h#newcode47 content/public/browser/profiler_controller.h:47: tracked_objects::ThreadData::Status status) = 0; ...
8 years, 10 months ago (2012-02-06 23:44:07 UTC) #5
jar (doing other things)
8 years, 10 months ago (2012-02-07 00:08:03 UTC) #6
Change per comment by jam@

http://codereview.chromium.org/9181002/diff/46001/content/public/browser/prof...
File content/public/browser/profiler_controller.h (right):

http://codereview.chromium.org/9181002/diff/46001/content/public/browser/prof...
content/public/browser/profiler_controller.h:47:
tracked_objects::ThreadData::Status status) = 0;
Good catch.  The "include what you use" rule says it should be in both.... so
I'll just add it here.

Thanks!

On 2012/02/06 23:44:07, John Abd-El-Malek wrote:
> i think you'll want to have the header in this file, and not in the impl.h

Powered by Google App Engine
This is Rietveld 408576698