| 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 | 403 |
| 404 // Guards against multiple calls to TearDown() that can happen in some tests. | 404 // Guards against multiple calls to TearDown() that can happen in some tests. |
| 405 // 'true' between SetUp() and TearDown(). | 405 // 'true' between SetUp() and TearDown(). |
| 406 bool is_initialized_; | 406 bool is_initialized_; |
| 407 | 407 |
| 408 base::ElapsedTimer timer_; | 408 base::ElapsedTimer timer_; |
| 409 | 409 |
| 410 friend class CpuProfiler; | 410 friend class CpuProfiler; |
| 411 }; | 411 }; |
| 412 | 412 |
| 413 | |
| 414 #define TIMER_EVENTS_LIST(V) \ | 413 #define TIMER_EVENTS_LIST(V) \ |
| 415 V(RecompileSynchronous, true) \ | 414 V(RecompileSynchronous, true) \ |
| 416 V(RecompileConcurrent, true) \ | 415 V(RecompileConcurrent, true) \ |
| 417 V(CompileFullCode, true) \ | 416 V(CompileFullCode, true) \ |
| 417 V(OptimizeCode, true) \ |
| 418 V(CompileCode, true) \ |
| 419 V(DeoptimizeCode, true) \ |
| 418 V(Execute, true) \ | 420 V(Execute, true) \ |
| 419 V(External, true) \ | 421 V(External, true) \ |
| 420 V(IcMiss, false) | 422 V(IcMiss, false) |
| 421 | 423 |
| 422 #define V(TimerName, expose) \ | 424 #define V(TimerName, expose) \ |
| 423 class TimerEvent##TimerName : public AllStatic { \ | 425 class TimerEvent##TimerName : public AllStatic { \ |
| 424 public: \ | 426 public: \ |
| 425 static const char* name(void* unused = NULL) { return "V8." #TimerName; } \ | 427 static const char* name(void* unused = NULL) { return "V8." #TimerName; } \ |
| 426 static bool expose_to_api() { return expose; } \ | 428 static bool expose_to_api() { return expose; } \ |
| 427 }; | 429 }; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 | 526 |
| 525 NameBuffer* name_buffer_; | 527 NameBuffer* name_buffer_; |
| 526 }; | 528 }; |
| 527 | 529 |
| 528 | 530 |
| 529 } // namespace internal | 531 } // namespace internal |
| 530 } // namespace v8 | 532 } // namespace v8 |
| 531 | 533 |
| 532 | 534 |
| 533 #endif // V8_LOG_H_ | 535 #endif // V8_LOG_H_ |
| OLD | NEW |