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

Issue 9125015: Implement profiler log writing at shutdown (Closed)

Created:
8 years, 11 months ago by rlarocque
Modified:
8 years, 10 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, eroman
Visibility:
Public.

Description

Implement profiler log writing at shutdown Add a flag to enable writing profile data during shutdown (--profiling-output-file=$FILE). Add TaskProfilerDataSerializer. This class is responsible for collecting and outputing profiler data. Currently, the collection part is very simple, since ThreadData::ToValue() is static. It should become more substantial when we add support for multi-process profiler dumps. This class has to be located outside of base/ because it needs to access Chrome-specific functions (ie. for fetching the userAgent). Move AutoTracking class to the chrome/browser/task_profiler directory. It needs to access the TaskProfilerDataSerializer, but components in base/ should not have access to this Chrome-specific class. BUG=107265, 109459 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=121515

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase + Update #

Total comments: 9

Patch Set 3 : Update for review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -26 lines) Patch
M base/tracked_objects.h View 1 1 chunk +0 lines, -24 lines 0 comments Download
M chrome/browser/chrome_browser_main.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/browser/task_profiler/auto_tracking.h View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/task_profiler/auto_tracking.cc View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/browser/task_profiler/task_profiler_data_serializer.h View 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/browser/task_profiler/task_profiler_data_serializer.cc View 1 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
rlarocque
Here is the C++ implementation of code to output the task profiler's state. It should ...
8 years, 11 months ago (2012-01-06 23:36:36 UTC) #1
eroman
When including multiple reviewers, please describe what you want each reviewer to look at, otherwise ...
8 years, 11 months ago (2012-01-10 02:42:58 UTC) #2
jar (doing other things)
http://codereview.chromium.org/9125015/diff/1/chrome/browser/task_profiler/task_profiler_data_serializer.cc File chrome/browser/task_profiler/task_profiler_data_serializer.cc (right): http://codereview.chromium.org/9125015/diff/1/chrome/browser/task_profiler/task_profiler_data_serializer.cc#newcode32 chrome/browser/task_profiler/task_profiler_data_serializer.cc:32: // down, then add that data to the 'per_process_data' ...
8 years, 11 months ago (2012-01-10 20:51:35 UTC) #3
jar (doing other things)
+cc rtenneti
8 years, 11 months ago (2012-01-28 02:43:43 UTC) #4
ramant (doing other things)
http://codereview.chromium.org/9125015/diff/1/chrome/browser/task_profiler/task_profiler_data_serializer.cc File chrome/browser/task_profiler/task_profiler_data_serializer.cc (right): http://codereview.chromium.org/9125015/diff/1/chrome/browser/task_profiler/task_profiler_data_serializer.cc#newcode32 chrome/browser/task_profiler/task_profiler_data_serializer.cc:32: // down, then add that data to the 'per_process_data' ...
8 years, 10 months ago (2012-01-31 01:12:44 UTC) #5
rlarocque
On 2012/01/31 01:12:44, ramant wrote: > http://codereview.chromium.org/9125015/diff/1/chrome/browser/task_profiler/task_profiler_data_serializer.cc > File chrome/browser/task_profiler/task_profiler_data_serializer.cc (right): > > http://codereview.chromium.org/9125015/diff/1/chrome/browser/task_profiler/task_profiler_data_serializer.cc#newcode32 > ...
8 years, 10 months ago (2012-01-31 19:26:03 UTC) #6
ramant (doing other things)
On 2012/01/31 19:26:03, rlarocque wrote: > On 2012/01/31 01:12:44, ramant wrote: > > > http://codereview.chromium.org/9125015/diff/1/chrome/browser/task_profiler/task_profiler_data_serializer.cc ...
8 years, 10 months ago (2012-01-31 20:09:50 UTC) #7
rlarocque
On 2012/01/31 20:09:50, ramant wrote: > On 2012/01/31 19:26:03, rlarocque wrote: > > On 2012/01/31 ...
8 years, 10 months ago (2012-02-03 22:37:28 UTC) #8
ramant (doing other things)
On 2012/02/03 22:37:28, rlarocque wrote: > On 2012/01/31 20:09:50, ramant wrote: > > On 2012/01/31 ...
8 years, 10 months ago (2012-02-03 22:54:37 UTC) #9
rlarocque
> Would be great, if you could land this patch (with the TODO for me ...
8 years, 10 months ago (2012-02-06 19:31:42 UTC) #10
jar (doing other things)
A few nits... and then we should get this landed so that Raman can try ...
8 years, 10 months ago (2012-02-08 20:34:37 UTC) #11
rlarocque
Thanks for the review. Patch updated. http://codereview.chromium.org/9125015/diff/11001/chrome/browser/task_profiler/auto_tracking.h File chrome/browser/task_profiler/auto_tracking.h (right): http://codereview.chromium.org/9125015/diff/11001/chrome/browser/task_profiler/auto_tracking.h#newcode10 chrome/browser/task_profiler/auto_tracking.h:10: #include "base/file_path.h" On ...
8 years, 10 months ago (2012-02-08 23:49:44 UTC) #12
jar (doing other things)
LGTM (on the assumption that raman is picking this up. We usually like to have ...
8 years, 10 months ago (2012-02-09 18:07:48 UTC) #13
ramant (doing other things)
On 2012/02/09 18:07:48, jar wrote: > LGTM (on the assumption that raman is picking this ...
8 years, 10 months ago (2012-02-09 18:29:34 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/9125015/20001
8 years, 10 months ago (2012-02-10 19:03:29 UTC) #15
commit-bot: I haz the power
8 years, 10 months ago (2012-02-10 20:39:24 UTC) #16
Change committed as 121515

Powered by Google App Engine
This is Rietveld 408576698