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

Side by Side Diff: content/public/browser/background_tracing_reactive_config.h

Issue 1089253003: Re-land first pass BackgroundTracingManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split config into separate headers and build fix. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_BROWSER_BACKGROUND_REACTIVE_TRACING_CONFIG_H_
6 #define CONTENT_PUBLIC_BROWSER_BACKGROUND_REACTIVE_TRACING_CONFIG_H_
7
8 #include "content/public/browser/background_tracing_config.h"
9
10 namespace content {
11
12 // BackgroundTracingReactiveConfig holds trigger rules for use during
13 // reactive tracing. Tracing will be not be enabled immediately, rather
14 // the BackgroundTracingManager will wait for a trigger to occur, and
15 // enable tracing at that point. Tracing will be finalized later, either
16 // after some time has elapsed or the trigger occurs again.
17 struct CONTENT_EXPORT BackgroundTracingReactiveConfig
18 : public BackgroundTracingConfig {
19 public:
20 BackgroundTracingReactiveConfig();
21
22 enum RuleType { TRACE_ON_TRIGGER_UNTIL_10S_OR_NEXT_TRIGGER_OR_FULL };
no sievers 2015/05/14 21:25:17 nit: so this is TRACE_ON_MANUAL_TRIGGER_...?
shatch 2015/05/15 21:00:51 Done.
23 struct TracingRule {
24 RuleType type;
25 std::string trigger_name;
26 CategoryPreset category_preset;
no sievers 2015/05/14 21:25:17 Aha, that's interesting that you allow multiple ca
shatch 2015/05/15 21:00:51 This mode (reactive) doesn't start tracing until a
27 };
28
29 std::vector<TracingRule> configs;
30
31 protected:
32 ~BackgroundTracingReactiveConfig() override;
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_REACTIVE_TRACING_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698