| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 #ifndef V8_V8_PROFILER_H_ | 28 #ifndef V8_V8_PROFILER_H_ |
| 29 #define V8_V8_PROFILER_H_ | 29 #define V8_V8_PROFILER_H_ |
| 30 | 30 |
| 31 #include "v8.h" | 31 #include "v8.h" |
| 32 | 32 |
| 33 #ifdef _WIN32 | |
| 34 // Setup for Windows DLL export/import. See v8.h in this directory for | |
| 35 // information on how to build/use V8 as a DLL. | |
| 36 #if defined(BUILDING_V8_SHARED) && defined(USING_V8_SHARED) | |
| 37 #error both BUILDING_V8_SHARED and USING_V8_SHARED are set - please check the\ | |
| 38 build configuration to ensure that at most one of these is set | |
| 39 #endif | |
| 40 | |
| 41 #ifdef BUILDING_V8_SHARED | |
| 42 #define V8EXPORT __declspec(dllexport) | |
| 43 #elif USING_V8_SHARED | |
| 44 #define V8EXPORT __declspec(dllimport) | |
| 45 #else | |
| 46 #define V8EXPORT | |
| 47 #endif | |
| 48 | |
| 49 #else // _WIN32 | |
| 50 | |
| 51 // Setup for Linux shared library export. See v8.h in this directory for | |
| 52 // information on how to build/use V8 as shared library. | |
| 53 #if defined(__GNUC__) && ((__GNUC__ >= 4) || \ | |
| 54 (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(V8_SHARED) | |
| 55 #define V8EXPORT __attribute__ ((visibility("default"))) | |
| 56 #else | |
| 57 #define V8EXPORT | |
| 58 #endif | |
| 59 | |
| 60 #endif // _WIN32 | |
| 61 | |
| 62 | |
| 63 /** | 33 /** |
| 64 * Profiler support for the V8 JavaScript engine. | 34 * Profiler support for the V8 JavaScript engine. |
| 65 */ | 35 */ |
| 66 namespace v8 { | 36 namespace v8 { |
| 67 | 37 |
| 68 typedef uint32_t SnapshotObjectId; | 38 typedef uint32_t SnapshotObjectId; |
| 69 | 39 |
| 70 /** | 40 /** |
| 71 * CpuProfileNode represents a node in a call graph. | 41 * CpuProfileNode represents a node in a call graph. |
| 72 */ | 42 */ |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 : index(index), count(count), size(size) { } | 562 : index(index), count(count), size(size) { } |
| 593 uint32_t index; // Index of the time interval that was changed. | 563 uint32_t index; // Index of the time interval that was changed. |
| 594 uint32_t count; // New value of count field for the interval with this index. | 564 uint32_t count; // New value of count field for the interval with this index. |
| 595 uint32_t size; // New value of size field for the interval with this index. | 565 uint32_t size; // New value of size field for the interval with this index. |
| 596 }; | 566 }; |
| 597 | 567 |
| 598 | 568 |
| 599 } // namespace v8 | 569 } // namespace v8 |
| 600 | 570 |
| 601 | 571 |
| 602 #undef V8EXPORT | |
| 603 | |
| 604 | |
| 605 #endif // V8_V8_PROFILER_H_ | 572 #endif // V8_V8_PROFILER_H_ |
| OLD | NEW |