| 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" |
| 36 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
| 38 |
| 37 #include <memory> | 39 #include <memory> |
| 38 #include <stdint.h> | 40 #include <stdint.h> |
| 39 | 41 |
| 40 namespace base { | 42 namespace base { |
| 41 namespace trace_event { | 43 namespace trace_event { |
| 42 class ConvertableToTraceFormat; | 44 class ConvertableToTraceFormat; |
| 43 class TraceEventMemoryOverhead; | 45 class TraceEventMemoryOverhead; |
| 44 } | 46 } |
| 45 } | 47 } |
| 46 | 48 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 69 const unsigned char* categoryEnabledFlag, | 71 const unsigned char* categoryEnabledFlag, |
| 70 const char* name, | 72 const char* name, |
| 71 const char* scope, | 73 const char* scope, |
| 72 unsigned long long id, | 74 unsigned long long id, |
| 73 unsigned long long bindId, | 75 unsigned long long bindId, |
| 74 double timestamp, | 76 double timestamp, |
| 75 int numArgs, | 77 int numArgs, |
| 76 const char* argNames[], | 78 const char* argNames[], |
| 77 const unsigned char argTypes[], | 79 const unsigned char argTypes[], |
| 78 const unsigned long long argValues[], | 80 const unsigned long long argValues[], |
| 79 std::unique_ptr<TracedValue>, | 81 PassOwnPtr<TracedValue>, |
| 80 std::unique_ptr<TracedValue>, | 82 PassOwnPtr<TracedValue>, |
| 81 unsigned flags); | 83 unsigned flags); |
| 82 static TraceEvent::TraceEventHandle addTraceEvent(char phase, | 84 static TraceEvent::TraceEventHandle addTraceEvent(char phase, |
| 83 const unsigned char* categoryEnabledFlag, | 85 const unsigned char* categoryEnabledFlag, |
| 84 const char* name, | 86 const char* name, |
| 85 const char* scope, | 87 const char* scope, |
| 86 unsigned long long id, | 88 unsigned long long id, |
| 87 unsigned long long bindId, | 89 unsigned long long bindId, |
| 88 double timestamp, | 90 double timestamp, |
| 89 int numArgs, | 91 int numArgs, |
| 90 const char* argNames[], | 92 const char* argNames[], |
| (...skipping 15 matching lines...) Expand all Loading... |
| 106 const char* argNames[], | 108 const char* argNames[], |
| 107 const unsigned char argTypes[], | 109 const unsigned char argTypes[], |
| 108 const unsigned long long argValues[], | 110 const unsigned long long argValues[], |
| 109 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>* convertabl
es, | 111 std::unique_ptr<base::trace_event::ConvertableToTraceFormat>* convertabl
es, |
| 110 unsigned flags); | 112 unsigned flags); |
| 111 }; | 113 }; |
| 112 | 114 |
| 113 } // namespace blink | 115 } // namespace blink |
| 114 | 116 |
| 115 #endif // EventTracer_h | 117 #endif // EventTracer_h |
| OLD | NEW |