| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 PLATFORM_EXPORT extern TraceEvent::TraceEventAPIAtomicWord* traceSamplingState[3
]; | 60 PLATFORM_EXPORT extern TraceEvent::TraceEventAPIAtomicWord* traceSamplingState[3
]; |
| 61 | 61 |
| 62 class PLATFORM_EXPORT EventTracer { | 62 class PLATFORM_EXPORT EventTracer { |
| 63 public: | 63 public: |
| 64 static void initialize(); | 64 static void initialize(); |
| 65 static const unsigned char* getTraceCategoryEnabledFlag(const char*); | 65 static const unsigned char* getTraceCategoryEnabledFlag(const char*); |
| 66 static TraceEvent::TraceEventHandle addTraceEvent(char phase, | 66 static TraceEvent::TraceEventHandle addTraceEvent(char phase, |
| 67 const unsigned char* categoryEnabledFlag, | 67 const unsigned char* categoryEnabledFlag, |
| 68 const char* name, | 68 const char* name, |
| 69 unsigned long long id, | 69 unsigned long long id, |
| 70 unsigned long long bindId, |
| 70 double timestamp, | 71 double timestamp, |
| 71 int numArgs, | 72 int numArgs, |
| 72 const char* argNames[], | 73 const char* argNames[], |
| 73 const unsigned char argTypes[], | 74 const unsigned char argTypes[], |
| 74 const unsigned long long argValues[], | 75 const unsigned long long argValues[], |
| 75 PassRefPtr<TraceEvent::ConvertableToTraceFormat>, | 76 PassRefPtr<TraceEvent::ConvertableToTraceFormat>, |
| 76 PassRefPtr<TraceEvent::ConvertableToTraceFormat>, | 77 PassRefPtr<TraceEvent::ConvertableToTraceFormat>, |
| 77 unsigned char flags); | 78 unsigned flags); |
| 78 static TraceEvent::TraceEventHandle addTraceEvent(char phase, | 79 static TraceEvent::TraceEventHandle addTraceEvent(char phase, |
| 79 const unsigned char* categoryEnabledFlag, | 80 const unsigned char* categoryEnabledFlag, |
| 80 const char* name, | 81 const char* name, |
| 81 unsigned long long id, | 82 unsigned long long id, |
| 83 unsigned long long bindId, |
| 82 double timestamp, | 84 double timestamp, |
| 83 int numArgs, | 85 int numArgs, |
| 84 const char* argNames[], | 86 const char* argNames[], |
| 85 const unsigned char argTypes[], | 87 const unsigned char argTypes[], |
| 86 const unsigned long long argValues[], | 88 const unsigned long long argValues[], |
| 87 unsigned char flags); | 89 unsigned flags); |
| 88 static void updateTraceEventDuration(const unsigned char* categoryEnabledFla
g, const char* name, TraceEvent::TraceEventHandle); | 90 static void updateTraceEventDuration(const unsigned char* categoryEnabledFla
g, const char* name, TraceEvent::TraceEventHandle); |
| 89 }; | 91 }; |
| 90 | 92 |
| 91 } // namespace blink | 93 } // namespace blink |
| 92 | 94 |
| 93 #endif // EventTracer_h | 95 #endif // EventTracer_h |
| OLD | NEW |