| 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 20 matching lines...) Expand all Loading... |
| 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/RefCounted.h" | 35 #include "wtf/RefCounted.h" |
| 36 #include "wtf/RefPtr.h" | 36 #include "wtf/RefPtr.h" |
| 37 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
| 38 | 38 |
| 39 #include <stdint.h> | 39 #include <stdint.h> |
| 40 | 40 |
| 41 // This will mark the trace event as disabled by default. The user will need | |
| 42 // to explicitly enable the event. | |
| 43 #define TRACE_DISABLED_BY_DEFAULT(name) "disabled-by-default-" name | |
| 44 | |
| 45 namespace blink { | 41 namespace blink { |
| 46 | 42 |
| 47 namespace TraceEvent { | 43 namespace TraceEvent { |
| 48 typedef uint64_t TraceEventHandle; | 44 typedef uint64_t TraceEventHandle; |
| 49 | 45 |
| 50 class PLATFORM_EXPORT ConvertableToTraceFormat : public RefCounted<ConvertableTo
TraceFormat> { | 46 class PLATFORM_EXPORT ConvertableToTraceFormat : public RefCounted<ConvertableTo
TraceFormat> { |
| 51 public: | 47 public: |
| 52 virtual String asTraceFormat() const = 0; | 48 virtual String asTraceFormat() const = 0; |
| 53 virtual ~ConvertableToTraceFormat() { } | 49 virtual ~ConvertableToTraceFormat() { } |
| 54 }; | 50 }; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 80 const char* argNames[], | 76 const char* argNames[], |
| 81 const unsigned char argTypes[], | 77 const unsigned char argTypes[], |
| 82 const unsigned long long argValues[], | 78 const unsigned long long argValues[], |
| 83 unsigned char flags); | 79 unsigned char flags); |
| 84 static void updateTraceEventDuration(const unsigned char* categoryEnabledFla
g, const char* name, TraceEvent::TraceEventHandle); | 80 static void updateTraceEventDuration(const unsigned char* categoryEnabledFla
g, const char* name, TraceEvent::TraceEventHandle); |
| 85 }; | 81 }; |
| 86 | 82 |
| 87 } // namespace blink | 83 } // namespace blink |
| 88 | 84 |
| 89 #endif // EventTracer_h | 85 #endif // EventTracer_h |
| OLD | NEW |