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

Issue 1002103004: NOT FOR REVIEW - Slow Reports Reference Implementation

Created:
5 years, 9 months ago by shatch
Modified:
5 years, 7 months ago
CC:
oystein (OOO til 10th of July), fmeawad
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

NOT FOR REVIEW . BUG=

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : first pass with triggers #

Patch Set 7 : #

Patch Set 8 : Refactoring #

Patch Set 9 : Record continuously. #

Patch Set 10 : Rename to BackgroundTracingScenario #

Patch Set 11 : Compression for endpoints. #

Patch Set 12 : Refactoring + configurable categories. #

Patch Set 13 : Crash uploader override url. #

Patch Set 14 : Refactor #

Patch Set 15 : Remove compressed flag. #

Patch Set 16 : Compressed data sink. #

Patch Set 17 : Push compression to thread. #

Patch Set 18 : Cleanups. #

Patch Set 19 : Record continuously. #

Patch Set 20 : WIP - DO NOT SYNC #

Patch Set 21 : Refactor #

Patch Set 22 : #

Patch Set 23 : Refactor. #

Patch Set 24 : Refactor trace_controller with endpoints. #

Patch Set 25 : Folded in latest changes. #

Patch Set 26 : First pass stringification. #

Total comments: 1

Patch Set 27 : Using JSON now. #

Patch Set 28 : Write to json #

Patch Set 29 : First pass new API. #

Patch Set 30 : Cleanup WIP. #

Total comments: 23

Patch Set 31 : Oystein's comments. #

Patch Set 32 : Cleanups + formatting. #

Patch Set 33 : Dicts + formatting. #

Patch Set 34 : Comments + cleanup. #

Patch Set 35 : #

Patch Set 36 : JSON serialization. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1293 lines, -67 lines) Patch
M base/metrics/histogram.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M base/metrics/histogram_base.h View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M base/metrics/histogram_base.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/performance_monitor/performance_monitor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 3 chunks +106 lines, -0 lines 0 comments Download
M chrome/browser/tracing/crash_service_uploader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/tracing/crash_service_uploader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 3 chunks +20 lines, -11 lines 0 comments Download
A content/browser/tracing/background_tracing_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 1 chunk +315 lines, -0 lines 0 comments Download
A content/browser/tracing/background_tracing_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 1 chunk +82 lines, -0 lines 0 comments Download
A content/browser/tracing/background_tracing_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 1 chunk +278 lines, -0 lines 0 comments Download
M content/browser/tracing/tracing_controller_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/tracing/tracing_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/tracing/tracing_controller_impl_data_sinks.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 6 chunks +77 lines, -56 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2 chunks +5 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +1 line, -0 lines 0 comments Download
A content/public/browser/background_tracing_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 1 chunk +174 lines, -0 lines 0 comments Download
A content/public/browser/background_tracing_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 1 chunk +207 lines, -0 lines 0 comments Download
M content/public/browser/tracing_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
shatch
On 2015/03/16 20:33:16, Oystein wrote: > mailto:oysteine@chromium.org changed reviewers: > + mailto:oysteine@chromium.org > - mailto:oysteine@google.com ...
5 years, 9 months ago (2015-03-17 15:52:53 UTC) #3
shatch
https://codereview.chromium.org/1002103004/diff/500001/content/browser/tracing/background_tracing_manager.cc File content/browser/tracing/background_tracing_manager.cc (right): https://codereview.chromium.org/1002103004/diff/500001/content/browser/tracing/background_tracing_manager.cc#newcode21 content/browser/tracing/background_tracing_manager.cc:21: std::string BackgroundTracingManager::ParseOutEndpointContents(const std::string& contents) const { Thinking about refactoring ...
5 years, 7 months ago (2015-04-28 17:00:23 UTC) #5
shatch
https://codereview.chromium.org/1002103004/diff/580001/content/public/browser/background_tracing_manager.h File content/public/browser/background_tracing_manager.h (right): https://codereview.chromium.org/1002103004/diff/580001/content/public/browser/background_tracing_manager.h#newcode64 content/public/browser/background_tracing_manager.h:64: std::vector<MonitoringRule> configs; Anybody got any thoughts on these configs? ...
5 years, 7 months ago (2015-05-05 18:50:21 UTC) #6
oystein (OOO til 10th of July)
https://codereview.chromium.org/1002103004/diff/580001/content/browser/tracing/background_tracing_manager_impl.cc File content/browser/tracing/background_tracing_manager_impl.cc (right): https://codereview.chromium.org/1002103004/diff/580001/content/browser/tracing/background_tracing_manager_impl.cc#newcode59 content/browser/tracing/background_tracing_manager_impl.cc:59: void BackgroundTracingManagerImpl::WhenIdle(base::Callback<void()> idle_callback) { Is this used anywhere? What's ...
5 years, 7 months ago (2015-05-05 19:28:31 UTC) #8
shatch
https://codereview.chromium.org/1002103004/diff/580001/content/browser/tracing/background_tracing_manager_impl.cc File content/browser/tracing/background_tracing_manager_impl.cc (right): https://codereview.chromium.org/1002103004/diff/580001/content/browser/tracing/background_tracing_manager_impl.cc#newcode59 content/browser/tracing/background_tracing_manager_impl.cc:59: void BackgroundTracingManagerImpl::WhenIdle(base::Callback<void()> idle_callback) { On 2015/05/05 19:28:30, Oystein wrote: ...
5 years, 7 months ago (2015-05-05 20:20:23 UTC) #9
oystein (OOO til 10th of July)
5 years, 7 months ago (2015-05-05 20:40:10 UTC) #10
https://codereview.chromium.org/1002103004/diff/580001/content/public/browser...
File content/public/browser/background_tracing_manager.h (right):

https://codereview.chromium.org/1002103004/diff/580001/content/public/browser...
content/public/browser/background_tracing_manager.h:64:
std::vector<MonitoringRule> configs;
On 2015/05/05 20:20:23, shatch wrote:
> On 2015/05/05 19:28:31, Oystein wrote:
> > On 2015/05/05 18:50:21, shatch wrote:
> > > Anybody got any thoughts on these configs?
> > 
> > Hmm. Maybe this should just be how it's stored internally, and we just have
a
> > way to add a single new rule in the public API, for each call? I could see
> these
> > coming from multiple sources; i.e. Finch could add rules, command-line
> switches
> > could add rules...
> 
> so something like:
> 
> class BackgroundTracingPreemptiveConfig {
>  public:
>   void AddHistogramTriggerRule(...);
>   void AddNamedTriggerRule(...);
>  private:
>   ..stuff
> }
> 
> Ditto for ReactiveConfig?

I was thinking more that the config class which gets passed to AddScenario (or
RegisterScenario or whatever is better) just contains stuff for a single rule,
rather than all of them. I don't think there was any particular reason to just
be able to set the entire thing at once, but maybe I'm forgetting something.

https://codereview.chromium.org/1002103004/diff/580001/content/public/browser...
content/public/browser/background_tracing_manager.h:108: class UploadSink :
On 2015/05/05 20:20:23, shatch wrote:
> On 2015/05/05 19:28:31, Oystein wrote:
> > On 2015/05/05 18:50:21, shatch wrote:
> > > I moved this in here, should we just leave it out in the content namespace
> as
> > > BackgroundTracingUploadSink?
> > 
> > Or maybe even just TracingUploadSink; they aren't really specific to
> background
> > tracing.
> 
> I guess, but who else might use it? Kinda feels we should keep it as
> BackgroundTracingUploadSink since that's the pattern here.

True enough.

Powered by Google App Engine
This is Rietveld 408576698