| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_LOG_H_ | 5 #ifndef V8_LOG_H_ |
| 6 #define V8_LOG_H_ | 6 #define V8_LOG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 334 |
| 335 #define TIMER_EVENTS_LIST(V) \ | 335 #define TIMER_EVENTS_LIST(V) \ |
| 336 V(RecompileSynchronous, true) \ | 336 V(RecompileSynchronous, true) \ |
| 337 V(RecompileConcurrent, true) \ | 337 V(RecompileConcurrent, true) \ |
| 338 V(CompileIgnition, true) \ | 338 V(CompileIgnition, true) \ |
| 339 V(CompileFullCode, true) \ | 339 V(CompileFullCode, true) \ |
| 340 V(OptimizeCode, true) \ | 340 V(OptimizeCode, true) \ |
| 341 V(CompileCode, true) \ | 341 V(CompileCode, true) \ |
| 342 V(DeoptimizeCode, true) \ | 342 V(DeoptimizeCode, true) \ |
| 343 V(Execute, true) \ | 343 V(Execute, true) \ |
| 344 V(External, true) \ | 344 V(External, true) |
| 345 V(IcMiss, false) | |
| 346 | 345 |
| 347 #define V(TimerName, expose) \ | 346 #define V(TimerName, expose) \ |
| 348 class TimerEvent##TimerName : public AllStatic { \ | 347 class TimerEvent##TimerName : public AllStatic { \ |
| 349 public: \ | 348 public: \ |
| 350 static const char* name(void* unused = NULL) { return "V8." #TimerName; } \ | 349 static const char* name(void* unused = NULL) { return "V8." #TimerName; } \ |
| 351 static bool expose_to_api() { return expose; } \ | 350 static bool expose_to_api() { return expose; } \ |
| 352 }; | 351 }; |
| 353 TIMER_EVENTS_LIST(V) | 352 TIMER_EVENTS_LIST(V) |
| 354 #undef V | 353 #undef V |
| 355 | 354 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 | 400 |
| 402 NameBuffer* name_buffer_; | 401 NameBuffer* name_buffer_; |
| 403 }; | 402 }; |
| 404 | 403 |
| 405 | 404 |
| 406 } // namespace internal | 405 } // namespace internal |
| 407 } // namespace v8 | 406 } // namespace v8 |
| 408 | 407 |
| 409 | 408 |
| 410 #endif // V8_LOG_H_ | 409 #endif // V8_LOG_H_ |
| OLD | NEW |