| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 15 matching lines...) Expand all Loading... |
| 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_PERF_JIT_H_ | 28 #ifndef V8_PERF_JIT_H_ |
| 29 #define V8_PERF_JIT_H_ | 29 #define V8_PERF_JIT_H_ |
| 30 | 30 |
| 31 #include "src/v8.h" | 31 #include "src/v8.h" |
| 32 | 32 |
| 33 namespace v8 { | 33 namespace v8 { |
| 34 namespace internal { | 34 namespace internal { |
| 35 | 35 |
| 36 // TODO(jarin) For now, we disable perf integration on Android because of a | |
| 37 // build problem - when building the snapshot with AOSP, librt is not | |
| 38 // available, so we cannot use the clock_gettime function. To fix this, we | |
| 39 // should thread through the V8_LIBRT_NOT_AVAILABLE flag here and only disable | |
| 40 // the perf integration when this flag is present (the perf integration is not | |
| 41 // needed when generating snapshot, so it is fine to ifdef it away). | |
| 42 | |
| 43 #if V8_OS_LINUX | 36 #if V8_OS_LINUX |
| 44 | 37 |
| 45 // Linux perf tool logging support | 38 // Linux perf tool logging support |
| 46 class PerfJitLogger : public CodeEventLogger { | 39 class PerfJitLogger : public CodeEventLogger { |
| 47 public: | 40 public: |
| 48 PerfJitLogger(); | 41 PerfJitLogger(); |
| 49 virtual ~PerfJitLogger(); | 42 virtual ~PerfJitLogger(); |
| 50 | 43 |
| 51 virtual void CodeMoveEvent(Address from, Address to); | 44 virtual void CodeMoveEvent(Address from, Address to); |
| 52 virtual void CodeDeleteEvent(Address from); | 45 virtual void CodeDeleteEvent(Address from); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 virtual void LogRecordedBuffer(Code* code, SharedFunctionInfo* shared, | 104 virtual void LogRecordedBuffer(Code* code, SharedFunctionInfo* shared, |
| 112 const char* name, int length) { | 105 const char* name, int length) { |
| 113 UNIMPLEMENTED(); | 106 UNIMPLEMENTED(); |
| 114 } | 107 } |
| 115 }; | 108 }; |
| 116 | 109 |
| 117 #endif // V8_OS_LINUX | 110 #endif // V8_OS_LINUX |
| 118 } | 111 } |
| 119 } // namespace v8::internal | 112 } // namespace v8::internal |
| 120 #endif | 113 #endif |
| OLD | NEW |