OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 // string) as temporary so that they will be copied by addTraceEvent. | 539 // string) as temporary so that they will be copied by addTraceEvent. |
540 // - HAS_ID (0x2): use the id argument to uniquely identify the event for | 540 // - HAS_ID (0x2): use the id argument to uniquely identify the event for |
541 // matching with other events of the same name. | 541 // matching with other events of the same name. |
542 // - MANGLE_ID (0x4): specify this flag if the id parameter is the value | 542 // - MANGLE_ID (0x4): specify this flag if the id parameter is the value |
543 // of a pointer. | 543 // of a pointer. |
544 virtual TraceEventHandle addTraceEvent( | 544 virtual TraceEventHandle addTraceEvent( |
545 char phase, | 545 char phase, |
546 const unsigned char* categoryEnabledFlag, | 546 const unsigned char* categoryEnabledFlag, |
547 const char* name, | 547 const char* name, |
548 unsigned long long id, | 548 unsigned long long id, |
| 549 unsigned long long bindId, |
549 double timestamp, | 550 double timestamp, |
550 int numArgs, | 551 int numArgs, |
551 const char** argNames, | 552 const char** argNames, |
552 const unsigned char* argTypes, | 553 const unsigned char* argTypes, |
553 const unsigned long long* argValues, | 554 const unsigned long long* argValues, |
554 WebConvertableToTraceFormat* convertableValues, | 555 WebConvertableToTraceFormat* convertableValues, |
555 unsigned char flags) | 556 unsigned flags) |
556 { | 557 { |
557 return 0; | 558 return 0; |
558 } | 559 } |
559 | 560 |
560 // Set the duration field of a COMPLETE trace event. | 561 // Set the duration field of a COMPLETE trace event. |
561 virtual void updateTraceEventDuration(const unsigned char* categoryEnabledFl
ag, const char* name, TraceEventHandle) { } | 562 virtual void updateTraceEventDuration(const unsigned char* categoryEnabledFl
ag, const char* name, TraceEventHandle) { } |
562 | 563 |
563 // Callbacks for reporting histogram data. | 564 // Callbacks for reporting histogram data. |
564 // CustomCounts histogram has exponential bucket sizes, so that min=1, max=1
000000, bucketCount=50 would do. | 565 // CustomCounts histogram has exponential bucket sizes, so that min=1, max=1
000000, bucketCount=50 would do. |
565 virtual void histogramCustomCounts(const char* name, int sample, int min, in
t max, int bucketCount) { } | 566 virtual void histogramCustomCounts(const char* name, int sample, int min, in
t max, int bucketCount) { } |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 protected: | 741 protected: |
741 BLINK_PLATFORM_EXPORT Platform(); | 742 BLINK_PLATFORM_EXPORT Platform(); |
742 virtual ~Platform() { } | 743 virtual ~Platform() { } |
743 | 744 |
744 WebThread* m_mainThread; | 745 WebThread* m_mainThread; |
745 }; | 746 }; |
746 | 747 |
747 } // namespace blink | 748 } // namespace blink |
748 | 749 |
749 #endif | 750 #endif |
OLD | NEW |