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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 // because addTraceEvent is threadsafe internally and checks the enabled state | 156 // because addTraceEvent is threadsafe internally and checks the enabled state |
157 // again under lock. | 157 // again under lock. |
158 // | 158 // |
159 // Without the use of these static category pointers and enabled flags all | 159 // Without the use of these static category pointers and enabled flags all |
160 // trace points would carry a significant performance cost of aquiring a lock | 160 // trace points would carry a significant performance cost of aquiring a lock |
161 // and resolving the category. | 161 // and resolving the category. |
162 | 162 |
163 #ifndef TraceEvent_h | 163 #ifndef TraceEvent_h |
164 #define TraceEvent_h | 164 #define TraceEvent_h |
165 | 165 |
166 #include "EventTracer.h" | 166 #include "core/platform/EventTracer.h" |
167 | 167 |
168 #include <wtf/DynamicAnnotations.h> | 168 #include <wtf/DynamicAnnotations.h> |
169 #include <wtf/text/CString.h> | 169 #include <wtf/text/CString.h> |
170 | 170 |
171 // By default, const char* argument values are assumed to have long-lived scope | 171 // By default, const char* argument values are assumed to have long-lived scope |
172 // and will not be copied. Use this macro to force a const char* to be copied. | 172 // and will not be copied. Use this macro to force a const char* to be copied. |
173 #define TRACE_STR_COPY(str) \ | 173 #define TRACE_STR_COPY(str) \ |
174 WebCore::TraceEvent::TraceStringWithCopy(str) | 174 WebCore::TraceEvent::TraceStringWithCopy(str) |
175 | 175 |
176 // Records a pair of begin and end events called "name" for the current | 176 // Records a pair of begin and end events called "name" for the current |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 }; | 807 }; |
808 Data* m_pdata; | 808 Data* m_pdata; |
809 Data m_data; | 809 Data m_data; |
810 }; | 810 }; |
811 | 811 |
812 } // namespace TraceEvent | 812 } // namespace TraceEvent |
813 | 813 |
814 } // namespace WebCore | 814 } // namespace WebCore |
815 | 815 |
816 #endif | 816 #endif |
OLD | NEW |