yangguo@chromium.org | ab30bb8 | 2012-02-24 14:41:46 +0000 | [diff] [blame] | 1 | // Copyright 2012 the V8 project authors. All rights reserved. |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 2 | // Redistribution and use in source and binary forms, with or without |
| 3 | // modification, are permitted provided that the following conditions are |
| 4 | // met: |
| 5 | // |
| 6 | // * Redistributions of source code must retain the above copyright |
| 7 | // notice, this list of conditions and the following disclaimer. |
| 8 | // * Redistributions in binary form must reproduce the above |
| 9 | // copyright notice, this list of conditions and the following |
| 10 | // disclaimer in the documentation and/or other materials provided |
| 11 | // with the distribution. |
| 12 | // * Neither the name of Google Inc. nor the names of its |
| 13 | // contributors may be used to endorse or promote products derived |
| 14 | // from this software without specific prior written permission. |
| 15 | // |
| 16 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 17 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 18 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 19 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 20 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 21 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 22 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 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. |
| 27 | |
| 28 | #ifndef V8_CPU_PROFILER_H_ |
| 29 | #define V8_CPU_PROFILER_H_ |
| 30 | |
lrn@chromium.org | 1c09276 | 2011-05-09 09:42:16 +0000 | [diff] [blame] | 31 | #include "allocation.h" |
kasperl@chromium.org | a555126 | 2010-12-07 12:49:48 +0000 | [diff] [blame] | 32 | #include "atomicops.h" |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 33 | #include "circular-queue.h" |
kmillikin@chromium.org | 9155e25 | 2010-05-26 13:27:57 +0000 | [diff] [blame] | 34 | #include "unbound-queue.h" |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 35 | |
| 36 | namespace v8 { |
| 37 | namespace internal { |
| 38 | |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 39 | // Forward declarations. |
| 40 | class CodeEntry; |
| 41 | class CodeMap; |
| 42 | class CpuProfile; |
| 43 | class CpuProfilesCollection; |
| 44 | class ProfileGenerator; |
erik.corry@gmail.com | 9dfbea4 | 2010-05-21 12:58:28 +0000 | [diff] [blame] | 45 | class TokenEnumerator; |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 46 | |
whesse@chromium.org | b08986c | 2011-03-14 16:13:42 +0000 | [diff] [blame] | 47 | #define CODE_EVENTS_TYPE_LIST(V) \ |
| 48 | V(CODE_CREATION, CodeCreateEventRecord) \ |
| 49 | V(CODE_MOVE, CodeMoveEventRecord) \ |
whesse@chromium.org | b08986c | 2011-03-14 16:13:42 +0000 | [diff] [blame] | 50 | V(SHARED_FUNC_MOVE, SharedFunctionInfoMoveEventRecord) |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 51 | |
| 52 | |
| 53 | class CodeEventRecord { |
| 54 | public: |
| 55 | #define DECLARE_TYPE(type, ignore) type, |
| 56 | enum Type { |
| 57 | NONE = 0, |
| 58 | CODE_EVENTS_TYPE_LIST(DECLARE_TYPE) |
| 59 | NUMBER_OF_TYPES |
| 60 | }; |
| 61 | #undef DECLARE_TYPE |
| 62 | |
| 63 | Type type; |
| 64 | unsigned order; |
| 65 | }; |
| 66 | |
| 67 | |
| 68 | class CodeCreateEventRecord : public CodeEventRecord { |
| 69 | public: |
| 70 | Address start; |
| 71 | CodeEntry* entry; |
| 72 | unsigned size; |
whesse@chromium.org | b08986c | 2011-03-14 16:13:42 +0000 | [diff] [blame] | 73 | Address shared; |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 74 | |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 75 | INLINE(void UpdateCodeMap(CodeMap* code_map)); |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 76 | }; |
| 77 | |
| 78 | |
| 79 | class CodeMoveEventRecord : public CodeEventRecord { |
| 80 | public: |
| 81 | Address from; |
| 82 | Address to; |
| 83 | |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 84 | INLINE(void UpdateCodeMap(CodeMap* code_map)); |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 85 | }; |
| 86 | |
| 87 | |
whesse@chromium.org | b08986c | 2011-03-14 16:13:42 +0000 | [diff] [blame] | 88 | class SharedFunctionInfoMoveEventRecord : public CodeEventRecord { |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 89 | public: |
fschneider@chromium.org | 3a5fd78 | 2011-02-24 10:10:44 +0000 | [diff] [blame] | 90 | Address from; |
| 91 | Address to; |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 92 | |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 93 | INLINE(void UpdateCodeMap(CodeMap* code_map)); |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 94 | }; |
| 95 | |
| 96 | |
ager@chromium.org | 04921a8 | 2011-06-27 13:21:41 +0000 | [diff] [blame] | 97 | class TickSampleEventRecord { |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 98 | public: |
ager@chromium.org | 04921a8 | 2011-06-27 13:21:41 +0000 | [diff] [blame] | 99 | // The parameterless constructor is used when we dequeue data from |
| 100 | // the ticks buffer. |
| 101 | TickSampleEventRecord() { } |
| 102 | explicit TickSampleEventRecord(unsigned order) |
| 103 | : filler(1), |
| 104 | order(order) { |
sgjesse@chromium.org | 82dbbab | 2010-06-02 08:57:44 +0000 | [diff] [blame] | 105 | ASSERT(filler != SamplingCircularQueue::kClear); |
| 106 | } |
| 107 | |
ager@chromium.org | 357bf65 | 2010-04-12 11:30:10 +0000 | [diff] [blame] | 108 | // The first machine word of a TickSampleEventRecord must not ever |
| 109 | // become equal to SamplingCircularQueue::kClear. As both order and |
| 110 | // TickSample's first field are not reliable in this sense (order |
| 111 | // can overflow, TickSample can have all fields reset), we are |
| 112 | // forced to use an artificial filler field. |
| 113 | int filler; |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 114 | unsigned order; |
ager@chromium.org | 357bf65 | 2010-04-12 11:30:10 +0000 | [diff] [blame] | 115 | TickSample sample; |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 116 | |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 117 | static TickSampleEventRecord* cast(void* value) { |
| 118 | return reinterpret_cast<TickSampleEventRecord*>(value); |
| 119 | } |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 120 | }; |
| 121 | |
| 122 | |
| 123 | // This class implements both the profile events processor thread and |
| 124 | // methods called by event producers: VM and stack sampler threads. |
| 125 | class ProfilerEventsProcessor : public Thread { |
| 126 | public: |
mstarzinger@chromium.org | 71fc346 | 2013-02-27 09:34:27 +0000 | [diff] [blame] | 127 | ProfilerEventsProcessor(ProfileGenerator* generator, |
| 128 | Sampler* sampler, |
| 129 | int period_in_useconds); |
fschneider@chromium.org | 3a5fd78 | 2011-02-24 10:10:44 +0000 | [diff] [blame] | 130 | virtual ~ProfilerEventsProcessor() {} |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 131 | |
| 132 | // Thread control. |
| 133 | virtual void Run(); |
| 134 | inline void Stop() { running_ = false; } |
| 135 | INLINE(bool running()) { return running_; } |
| 136 | |
| 137 | // Events adding methods. Called by VM threads. |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 138 | void CallbackCreateEvent(Logger::LogEventsAndTags tag, |
| 139 | const char* prefix, String* name, |
| 140 | Address start); |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 141 | void CodeCreateEvent(Logger::LogEventsAndTags tag, |
| 142 | String* name, |
| 143 | String* resource_name, int line_number, |
fschneider@chromium.org | 3a5fd78 | 2011-02-24 10:10:44 +0000 | [diff] [blame] | 144 | Address start, unsigned size, |
whesse@chromium.org | b08986c | 2011-03-14 16:13:42 +0000 | [diff] [blame] | 145 | Address shared); |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 146 | void CodeCreateEvent(Logger::LogEventsAndTags tag, |
| 147 | const char* name, |
| 148 | Address start, unsigned size); |
| 149 | void CodeCreateEvent(Logger::LogEventsAndTags tag, |
| 150 | int args_count, |
| 151 | Address start, unsigned size); |
| 152 | void CodeMoveEvent(Address from, Address to); |
| 153 | void CodeDeleteEvent(Address from); |
whesse@chromium.org | b08986c | 2011-03-14 16:13:42 +0000 | [diff] [blame] | 154 | void SharedFunctionInfoMoveEvent(Address from, Address to); |
ager@chromium.org | 357bf65 | 2010-04-12 11:30:10 +0000 | [diff] [blame] | 155 | void RegExpCodeCreateEvent(Logger::LogEventsAndTags tag, |
| 156 | const char* prefix, String* name, |
| 157 | Address start, unsigned size); |
sgjesse@chromium.org | 82dbbab | 2010-06-02 08:57:44 +0000 | [diff] [blame] | 158 | // Puts current stack into tick sample events buffer. |
| 159 | void AddCurrentStack(); |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 160 | |
mmassi@chromium.org | 49a4467 | 2012-12-04 13:52:03 +0000 | [diff] [blame] | 161 | // Tick sample events are filled directly in the buffer of the circular |
| 162 | // queue (because the structure is of fixed width, but usually not all |
| 163 | // stack frame entries are filled.) This method returns a pointer to the |
| 164 | // next record of the buffer. |
| 165 | INLINE(TickSample* TickSampleEvent()); |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 166 | |
| 167 | private: |
| 168 | union CodeEventsContainer { |
| 169 | CodeEventRecord generic; |
| 170 | #define DECLARE_CLASS(ignore, type) type type##_; |
| 171 | CODE_EVENTS_TYPE_LIST(DECLARE_CLASS) |
| 172 | #undef DECLARE_TYPE |
| 173 | }; |
| 174 | |
| 175 | // Called from events processing thread (Run() method.) |
| 176 | bool ProcessCodeEvent(unsigned* dequeue_order); |
| 177 | bool ProcessTicks(unsigned dequeue_order); |
mstarzinger@chromium.org | 71fc346 | 2013-02-27 09:34:27 +0000 | [diff] [blame] | 178 | void ProcessEventsAndDoSample(unsigned* dequeue_order); |
| 179 | void ProcessEventsAndYield(unsigned* dequeue_order); |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 180 | |
ager@chromium.org | 357bf65 | 2010-04-12 11:30:10 +0000 | [diff] [blame] | 181 | INLINE(static bool FilterOutCodeCreateEvent(Logger::LogEventsAndTags tag)); |
| 182 | |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 183 | ProfileGenerator* generator_; |
mstarzinger@chromium.org | 71fc346 | 2013-02-27 09:34:27 +0000 | [diff] [blame] | 184 | Sampler* sampler_; |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 185 | bool running_; |
mstarzinger@chromium.org | 71fc346 | 2013-02-27 09:34:27 +0000 | [diff] [blame] | 186 | // Sampling period in microseconds. |
| 187 | const int period_in_useconds_; |
kmillikin@chromium.org | 9155e25 | 2010-05-26 13:27:57 +0000 | [diff] [blame] | 188 | UnboundQueue<CodeEventsContainer> events_buffer_; |
mmassi@chromium.org | 49a4467 | 2012-12-04 13:52:03 +0000 | [diff] [blame] | 189 | SamplingCircularQueue ticks_buffer_; |
sgjesse@chromium.org | 82dbbab | 2010-06-02 08:57:44 +0000 | [diff] [blame] | 190 | UnboundQueue<TickSampleEventRecord> ticks_from_vm_buffer_; |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 191 | unsigned enqueue_order_; |
| 192 | }; |
| 193 | |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 194 | } } // namespace v8::internal |
| 195 | |
| 196 | |
erik.corry@gmail.com | 3847bd5 | 2011-04-27 10:38:56 +0000 | [diff] [blame] | 197 | #define PROFILE(isolate, Call) \ |
yangguo@chromium.org | 355cfd1 | 2012-08-29 15:32:24 +0000 | [diff] [blame] | 198 | LOG_CODE_EVENT(isolate, Call); \ |
erik.corry@gmail.com | 3847bd5 | 2011-04-27 10:38:56 +0000 | [diff] [blame] | 199 | do { \ |
| 200 | if (v8::internal::CpuProfiler::is_profiling(isolate)) { \ |
| 201 | v8::internal::CpuProfiler::Call; \ |
| 202 | } \ |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 203 | } while (false) |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 204 | |
| 205 | |
| 206 | namespace v8 { |
| 207 | namespace internal { |
| 208 | |
sgjesse@chromium.org | ea88ce9 | 2011-03-23 11:19:56 +0000 | [diff] [blame] | 209 | |
| 210 | // TODO(isolates): isolatify this class. |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 211 | class CpuProfiler { |
| 212 | public: |
erik.corry@gmail.com | f2038fb | 2012-01-16 11:42:08 +0000 | [diff] [blame] | 213 | static void SetUp(); |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 214 | static void TearDown(); |
| 215 | |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 216 | static void StartProfiling(const char* title); |
| 217 | static void StartProfiling(String* title); |
| 218 | static CpuProfile* StopProfiling(const char* title); |
erik.corry@gmail.com | 9dfbea4 | 2010-05-21 12:58:28 +0000 | [diff] [blame] | 219 | static CpuProfile* StopProfiling(Object* security_token, String* title); |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 220 | static int GetProfilesCount(); |
erik.corry@gmail.com | 9dfbea4 | 2010-05-21 12:58:28 +0000 | [diff] [blame] | 221 | static CpuProfile* GetProfile(Object* security_token, int index); |
| 222 | static CpuProfile* FindProfile(Object* security_token, unsigned uid); |
sgjesse@chromium.org | ea88ce9 | 2011-03-23 11:19:56 +0000 | [diff] [blame] | 223 | static void DeleteAllProfiles(); |
| 224 | static void DeleteProfile(CpuProfile* profile); |
| 225 | static bool HasDetachedProfiles(); |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 226 | |
| 227 | // Invoked from stack sampler (thread or signal handler.) |
mmassi@chromium.org | 49a4467 | 2012-12-04 13:52:03 +0000 | [diff] [blame] | 228 | static TickSample* TickSampleEvent(Isolate* isolate); |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 229 | |
| 230 | // Must be called via PROFILE macro, otherwise will crash when |
| 231 | // profiling is not enabled. |
| 232 | static void CallbackEvent(String* name, Address entry_point); |
| 233 | static void CodeCreateEvent(Logger::LogEventsAndTags tag, |
| 234 | Code* code, const char* comment); |
| 235 | static void CodeCreateEvent(Logger::LogEventsAndTags tag, |
| 236 | Code* code, String* name); |
| 237 | static void CodeCreateEvent(Logger::LogEventsAndTags tag, |
fschneider@chromium.org | 3a5fd78 | 2011-02-24 10:10:44 +0000 | [diff] [blame] | 238 | Code* code, |
erik.corry@gmail.com | f2038fb | 2012-01-16 11:42:08 +0000 | [diff] [blame] | 239 | SharedFunctionInfo* shared, |
fschneider@chromium.org | 3a5fd78 | 2011-02-24 10:10:44 +0000 | [diff] [blame] | 240 | String* name); |
| 241 | static void CodeCreateEvent(Logger::LogEventsAndTags tag, |
| 242 | Code* code, |
erik.corry@gmail.com | f2038fb | 2012-01-16 11:42:08 +0000 | [diff] [blame] | 243 | SharedFunctionInfo* shared, |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 244 | String* source, int line); |
| 245 | static void CodeCreateEvent(Logger::LogEventsAndTags tag, |
| 246 | Code* code, int args_count); |
whesse@chromium.org | 4a5224e | 2010-10-20 12:37:07 +0000 | [diff] [blame] | 247 | static void CodeMovingGCEvent() {} |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 248 | static void CodeMoveEvent(Address from, Address to); |
| 249 | static void CodeDeleteEvent(Address from); |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 250 | static void GetterCallbackEvent(String* name, Address entry_point); |
| 251 | static void RegExpCodeCreateEvent(Code* code, String* source); |
| 252 | static void SetterCallbackEvent(String* name, Address entry_point); |
whesse@chromium.org | b08986c | 2011-03-14 16:13:42 +0000 | [diff] [blame] | 253 | static void SharedFunctionInfoMoveEvent(Address from, Address to); |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 254 | |
sgjesse@chromium.org | ea88ce9 | 2011-03-23 11:19:56 +0000 | [diff] [blame] | 255 | static INLINE(bool is_profiling(Isolate* isolate)) { |
| 256 | CpuProfiler* profiler = isolate->cpu_profiler(); |
mstarzinger@chromium.org | 71fc346 | 2013-02-27 09:34:27 +0000 | [diff] [blame] | 257 | return profiler != NULL && profiler->is_profiling_; |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 258 | } |
| 259 | |
| 260 | private: |
| 261 | CpuProfiler(); |
| 262 | ~CpuProfiler(); |
| 263 | void StartCollectingProfile(const char* title); |
| 264 | void StartCollectingProfile(String* title); |
| 265 | void StartProcessorIfNotStarted(); |
| 266 | CpuProfile* StopCollectingProfile(const char* title); |
erik.corry@gmail.com | 9dfbea4 | 2010-05-21 12:58:28 +0000 | [diff] [blame] | 267 | CpuProfile* StopCollectingProfile(Object* security_token, String* title); |
vegorov@chromium.org | 26c16f8 | 2010-08-11 13:41:03 +0000 | [diff] [blame] | 268 | void StopProcessorIfLastProfile(const char* title); |
sgjesse@chromium.org | ea88ce9 | 2011-03-23 11:19:56 +0000 | [diff] [blame] | 269 | void StopProcessor(); |
| 270 | void ResetProfiles(); |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 271 | |
| 272 | CpuProfilesCollection* profiles_; |
| 273 | unsigned next_profile_uid_; |
erik.corry@gmail.com | 9dfbea4 | 2010-05-21 12:58:28 +0000 | [diff] [blame] | 274 | TokenEnumerator* token_enumerator_; |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 275 | ProfileGenerator* generator_; |
| 276 | ProfilerEventsProcessor* processor_; |
ager@chromium.org | 357bf65 | 2010-04-12 11:30:10 +0000 | [diff] [blame] | 277 | int saved_logging_nesting_; |
sgjesse@chromium.org | ea88ce9 | 2011-03-23 11:19:56 +0000 | [diff] [blame] | 278 | bool need_to_stop_sampler_; |
mstarzinger@chromium.org | 71fc346 | 2013-02-27 09:34:27 +0000 | [diff] [blame] | 279 | bool is_profiling_; |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 280 | |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 281 | private: |
| 282 | DISALLOW_COPY_AND_ASSIGN(CpuProfiler); |
| 283 | }; |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 284 | |
| 285 | } } // namespace v8::internal |
| 286 | |
lrn@chromium.org | 25156de | 2010-04-06 13:10:27 +0000 | [diff] [blame] | 287 | |
whesse@chromium.org | cec079d | 2010-03-22 14:44:04 +0000 | [diff] [blame] | 288 | #endif // V8_CPU_PROFILER_H_ |