[chromium] Implement TRACE_EVENT macros for sampling profiling
[WebKit-https.git] / Source / WebCore / platform / EventTracer.h
index 739c2b0..836e2e9 100644 (file)
 
 namespace WebCore {
 
+typedef long int TraceEventAPIAtomicWord;
+
+extern TraceEventAPIAtomicWord* traceSamplingState0;
+extern TraceEventAPIAtomicWord* traceSamplingState1;
+extern TraceEventAPIAtomicWord* traceSamplingState2;
+
 class EventTracer {
 public:
+    static void initialize();
     static const unsigned char* getTraceCategoryEnabledFlag(const char*);
     static void addTraceEvent(char phase,
                              const unsigned char* categoryEnabledFlag,