OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 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 BASE_DEBUG_IN_PROCESS_TRACING_H_ |
| 6 #define BASE_DEBUG_IN_PROCESS_TRACING_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/compiler_specific.h" |
| 11 #include "base/time/time.h" |
| 12 |
| 13 namespace tracing { |
| 14 |
| 15 // Begin tracing specified category_patterns on the browser. |
| 16 // |category_patterns| is a comma-delimited list of category wildcards. |
| 17 // A category pattern can have an optional '-' prefix to make categories with |
| 18 // matching categorys excluded. Either all category_patterns must be included |
| 19 // or all must be excluded. |
| 20 // |
| 21 // Example: BeginTracing("test_MyTest*"); |
| 22 // Example: BeginTracing("test_MyTest*,test_OtherStuff"); |
| 23 // Example: BeginTracing("-excluded_category1,-excluded_category2"); |
| 24 // |
| 25 // See base/debug/trace_event.h for documentation of included and excluded |
| 26 // category_patterns. |
| 27 bool BeginTracing(const std::string& category_patterns); |
| 28 |
| 29 // End trace and collect the trace output as a json string. |
| 30 bool EndTracing(std::string* json_trace_output); |
| 31 |
| 32 } // namespace tracing |
| 33 |
| 34 #endif // BASE_DEBUG_IN_PROCESS_TRACING_H_ |
OLD | NEW |