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

Side by Side Diff: base/debug/trace_event_impl.h

Issue 18174006: Allow tracing to console everywhere. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 5
6 #ifndef BASE_DEBUG_TRACE_EVENT_IMPL_H_ 6 #ifndef BASE_DEBUG_TRACE_EVENT_IMPL_H_
7 #define BASE_DEBUG_TRACE_EVENT_IMPL_H_ 7 #define BASE_DEBUG_TRACE_EVENT_IMPL_H_
8 8
9 #include <stack> 9 #include <stack>
10 #include <string> 10 #include <string>
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // Record until the trace buffer is full. 283 // Record until the trace buffer is full.
284 RECORD_UNTIL_FULL = 1 << 0, 284 RECORD_UNTIL_FULL = 1 << 0,
285 285
286 // Record until the user ends the trace. The trace buffer is a fixed size 286 // Record until the user ends the trace. The trace buffer is a fixed size
287 // and we use it as a ring buffer during recording. 287 // and we use it as a ring buffer during recording.
288 RECORD_CONTINUOUSLY = 1 << 1, 288 RECORD_CONTINUOUSLY = 1 << 1,
289 289
290 // Enable the sampling profiler. 290 // Enable the sampling profiler.
291 ENABLE_SAMPLING = 1 << 2, 291 ENABLE_SAMPLING = 1 << 2,
292 292
293 // Echo to VLOG. Events are discared. 293 // Echo to console. Events are discared.
294 ECHO_TO_VLOG = 1 << 3 294 ECHO_TO_CONSOLE = 1 << 3
295 }; 295 };
296 296
297 static TraceLog* GetInstance(); 297 static TraceLog* GetInstance();
298 298
299 // Convert the given string to trace options. Defaults to RECORD_UNTIL_FULL if 299 // Convert the given string to trace options. Defaults to RECORD_UNTIL_FULL if
300 // the string does not provide valid options. 300 // the string does not provide valid options.
301 static Options TraceOptionsFromString(const std::string& str); 301 static Options TraceOptionsFromString(const std::string& str);
302 302
303 // Get set of known category groups. This can change as new code paths are 303 // Get set of known category groups. This can change as new code paths are
304 // reached. The known category groups are inserted into |category_groups|. 304 // reached. The known category groups are inserted into |category_groups|.
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 562
563 CategoryFilter category_filter_; 563 CategoryFilter category_filter_;
564 564
565 DISALLOW_COPY_AND_ASSIGN(TraceLog); 565 DISALLOW_COPY_AND_ASSIGN(TraceLog);
566 }; 566 };
567 567
568 } // namespace debug 568 } // namespace debug
569 } // namespace base 569 } // namespace base
570 570
571 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ 571 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698