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

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

Issue 67073002: DO NOT SUBMIT: In-process tracing for debugging tests Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « base/base.gypi ('k') | base/debug/in_process_tracing.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « base/base.gypi ('k') | base/debug/in_process_tracing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698