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

Side by Side Diff: content/browser/tracing/trace_controller_impl.h

Issue 12302036: Add a mode flag to the tracing framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master. Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_TRACING_TRACE_CONTROLLER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_TRACING_TRACE_CONTROLLER_IMPL_H_
6 #define CONTENT_BROWSER_TRACING_TRACE_CONTROLLER_IMPL_H_ 6 #define CONTENT_BROWSER_TRACING_TRACE_CONTROLLER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 20 matching lines...) Expand all
31 // once the categories are retrieved from child processes. 31 // once the categories are retrieved from child processes.
32 bool GetKnownCategoriesAsync(TraceSubscriber* subscriber); 32 bool GetKnownCategoriesAsync(TraceSubscriber* subscriber);
33 33
34 // Same as above, but specifies which categories to trace. 34 // Same as above, but specifies which categories to trace.
35 // If both included_categories and excluded_categories are empty, 35 // If both included_categories and excluded_categories are empty,
36 // all categories are traced. 36 // all categories are traced.
37 // Else if included_categories is non-empty, only those are traced. 37 // Else if included_categories is non-empty, only those are traced.
38 // Else if excluded_categories is non-empty, everything but those are traced. 38 // Else if excluded_categories is non-empty, everything but those are traced.
39 bool BeginTracing(TraceSubscriber* subscriber, 39 bool BeginTracing(TraceSubscriber* subscriber,
40 const std::vector<std::string>& included_categories, 40 const std::vector<std::string>& included_categories,
41 const std::vector<std::string>& excluded_categories); 41 const std::vector<std::string>& excluded_categories,
42 base::debug::TraceLog::Options options);
42 43
43 // TraceController implementation: 44 // TraceController implementation:
44 virtual bool BeginTracing(TraceSubscriber* subscriber, 45 virtual bool BeginTracing(TraceSubscriber* subscriber,
45 const std::string& categories) OVERRIDE; 46 const std::string& categories,
47 base::debug::TraceLog::Options options) OVERRIDE;
46 virtual bool EndTracingAsync(TraceSubscriber* subscriber) OVERRIDE; 48 virtual bool EndTracingAsync(TraceSubscriber* subscriber) OVERRIDE;
47 virtual bool GetTraceBufferPercentFullAsync( 49 virtual bool GetTraceBufferPercentFullAsync(
48 TraceSubscriber* subscriber) OVERRIDE; 50 TraceSubscriber* subscriber) OVERRIDE;
49 virtual bool SetWatchEvent(TraceSubscriber* subscriber, 51 virtual bool SetWatchEvent(TraceSubscriber* subscriber,
50 const std::string& category_name, 52 const std::string& category_name,
51 const std::string& event_name) OVERRIDE; 53 const std::string& event_name) OVERRIDE;
52 virtual bool CancelWatchEvent(TraceSubscriber* subscriber) OVERRIDE; 54 virtual bool CancelWatchEvent(TraceSubscriber* subscriber) OVERRIDE;
53 virtual void CancelSubscriber(TraceSubscriber* subscriber) OVERRIDE; 55 virtual void CancelSubscriber(TraceSubscriber* subscriber) OVERRIDE;
54 56
55 private: 57 private:
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // Pending acks for GetTraceBufferPercentFullAsync: 101 // Pending acks for GetTraceBufferPercentFullAsync:
100 int pending_bpf_ack_count_; 102 int pending_bpf_ack_count_;
101 float maximum_bpf_; 103 float maximum_bpf_;
102 bool is_tracing_; 104 bool is_tracing_;
103 bool is_get_categories_; 105 bool is_get_categories_;
104 std::set<std::string> known_categories_; 106 std::set<std::string> known_categories_;
105 std::vector<std::string> included_categories_; 107 std::vector<std::string> included_categories_;
106 std::vector<std::string> excluded_categories_; 108 std::vector<std::string> excluded_categories_;
107 std::string watch_category_; 109 std::string watch_category_;
108 std::string watch_name_; 110 std::string watch_name_;
111 base::debug::TraceLog::Options trace_options_;
109 112
110 DISALLOW_COPY_AND_ASSIGN(TraceControllerImpl); 113 DISALLOW_COPY_AND_ASSIGN(TraceControllerImpl);
111 }; 114 };
112 115
113 } // namespace content 116 } // namespace content
114 117
115 #endif // CONTENT_BROWSER_TRACING_TRACE_CONTROLLER_IMPL_H_ 118 #endif // CONTENT_BROWSER_TRACING_TRACE_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_tracing_handler.cc ('k') | content/browser/tracing/trace_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698