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

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

Issue 1089253003: Re-land first pass BackgroundTracingManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Scoped_ptr 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_TRACING_PREEMPTIVE_CONFIG_H_
6 #define CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_PREEMPTIVE_CONFIG_H_
7
8 #include "content/public/browser/background_tracing_config.h"
9
10 namespace content {
11
12 // BackgroundTracingPreemptiveConfig holds trigger rules for use during
13 // preemptive tracing. Tracing will be enabled immediately, and whenever
14 // a trigger occurs, the trace will be finalized.
15 struct CONTENT_EXPORT BackgroundTracingPreemptiveConfig
16 : public BackgroundTracingConfig {
17 public:
18 BackgroundTracingPreemptiveConfig();
19 ~BackgroundTracingPreemptiveConfig() override;
20
21 enum RuleType {
22 MONITOR_AND_DUMP_WHEN_TRIGGER_NAMED,
23 MONITOR_AND_DUMP_WHEN_SPECIFIC_HISTOGRAM_AND_VALUE,
24 MONITOR_AND_DUMP_WHEN_BROWSER_STARTUP_COMPLETE,
25 };
26 struct HistogramTriggerInfo {
27 std::string histogram_name_to_trigger_on;
28 int histogram_bin_to_trigger_on;
29 };
30 struct NamedTriggerInfo {
31 std::string trigger_name;
32 };
33 struct MonitoringRule {
34 RuleType type;
35 HistogramTriggerInfo histogram_trigger_info;
36 NamedTriggerInfo named_trigger_info;
37 };
38
39 std::vector<MonitoringRule> configs;
40 CategoryPreset category_preset;
41 };
42
43 } // namespace content
44
45 #endif // CONTENT_PUBLIC_BROWSER_BACKGROUND_TRACING_PREEMPTIVE_CONFIG_H_
OLDNEW
« no previous file with comments | « content/public/browser/background_tracing_manager.h ('k') | content/public/browser/background_tracing_preemptive_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698