OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 15 matching lines...) Expand all Loading... |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef EventTracer_h | 31 #ifndef EventTracer_h |
32 #define EventTracer_h | 32 #define EventTracer_h |
33 | 33 |
34 #include "platform/PlatformExport.h" | 34 #include "platform/PlatformExport.h" |
35 #include "wtf/Allocator.h" | 35 #include "wtf/Allocator.h" |
36 #include "wtf/PassOwnPtr.h" | |
37 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
38 | |
39 #include <memory> | 37 #include <memory> |
40 #include <stdint.h> | 38 #include <stdint.h> |
41 | 39 |
42 namespace base { | 40 namespace base { |
43 namespace trace_event { | 41 namespace trace_event { |
44 class ConvertableToTraceFormat; | 42 class ConvertableToTraceFormat; |
45 class TraceEventMemoryOverhead; | 43 class TraceEventMemoryOverhead; |
46 } | 44 } |
47 } | 45 } |
48 | 46 |
(...skipping 22 matching lines...) Expand all Loading... |
71 const unsigned char* categoryEnabledFlag, | 69 const unsigned char* categoryEnabledFlag, |
72 const char* name, | 70 const char* name, |
73 const char* scope, | 71 const char* scope, |
74 unsigned long long id, | 72 unsigned long long id, |
75 unsigned long long bindId, | 73 unsigned long long bindId, |
76 double timestamp, | 74 double timestamp, |
77 int numArgs, | 75 int numArgs, |
78 const char* argNames[], | 76 const char* argNames[], |
79 const unsigned char argTypes[], | 77 const unsigned char argTypes[], |
80 const unsigned long long argValues[], | 78 const unsigned long long argValues[], |
81 PassOwnPtr<TracedValue>, | 79 std::unique_ptr<TracedValue>, |
82 PassOwnPtr<TracedValue>, | 80 std::unique_ptr<TracedValue>, |
83 unsigned flags); | 81 unsigned flags); |
84 static TraceEvent::TraceEventHandle addTraceEvent(char phase, | 82 static TraceEvent::TraceEventHandle addTraceEvent(char phase, |
85 const unsigned char* categoryEnabledFlag, | 83 const unsigned char* categoryEnabledFlag, |
86 const char* name, | 84 const char* name, |
87 const char* scope, | 85 const char* scope, |
88 unsigned long long id, | 86 unsigned long long id, |
89 unsigned long long bindId, | 87 unsigned long long bindId, |
90 double timestamp, | 88 double timestamp, |
91 int numArgs, | 89 int numArgs, |
92 const char* argNames[], | 90 const char* argNames[], |
(...skipping 15 matching lines...) Expand all Loading... |
108 const char* argNames[], | 106 const char* argNames[], |
109 const unsigned char argTypes[], | 107 const unsigned char argTypes[], |
110 const unsigned long long argValues[], | 108 const unsigned long long argValues[], |
111 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>* convertabl
es, | 109 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>* convertabl
es, |
112 unsigned flags); | 110 unsigned flags); |
113 }; | 111 }; |
114 | 112 |
115 } // namespace blink | 113 } // namespace blink |
116 | 114 |
117 #endif // EventTracer_h | 115 #endif // EventTracer_h |
OLD | NEW |