| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 #include <stdarg.h> | 5 #include <stdarg.h> |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1116 Isolate* isolate = Isolate::Current(); | 1116 Isolate* isolate = Isolate::Current(); |
| 1117 LOG(isolate, TimerEvent(static_cast<StartEnd>(se), name)); | 1117 LOG(isolate, TimerEvent(static_cast<StartEnd>(se), name)); |
| 1118 } | 1118 } |
| 1119 | 1119 |
| 1120 | 1120 |
| 1121 void Logger::TimerEventScope::LogTimerEvent(StartEnd se) { | 1121 void Logger::TimerEventScope::LogTimerEvent(StartEnd se) { |
| 1122 isolate_->event_logger()(name_, se); | 1122 isolate_->event_logger()(name_, se); |
| 1123 } | 1123 } |
| 1124 | 1124 |
| 1125 | 1125 |
| 1126 void Logger::ExternalTimerEventScope::LogTimerEvent(StartEnd se) { |
| 1127 if (FLAG_log_timer_events) |
| 1128 isolate_->event_logger()(name_, se); |
| 1129 } |
| 1130 |
| 1131 |
| 1126 const char* Logger::TimerEventScope::v8_recompile_synchronous = | 1132 const char* Logger::TimerEventScope::v8_recompile_synchronous = |
| 1127 "V8.RecompileSynchronous"; | 1133 "V8.RecompileSynchronous"; |
| 1128 const char* Logger::TimerEventScope::v8_recompile_concurrent = | 1134 const char* Logger::TimerEventScope::v8_recompile_concurrent = |
| 1129 "V8.RecompileConcurrent"; | 1135 "V8.RecompileConcurrent"; |
| 1130 const char* Logger::TimerEventScope::v8_compile_full_code = | 1136 const char* Logger::TimerEventScope::v8_compile_full_code = |
| 1131 "V8.CompileFullCode"; | 1137 "V8.CompileFullCode"; |
| 1132 const char* Logger::TimerEventScope::v8_execute = "V8.Execute"; | 1138 const char* Logger::TimerEventScope::v8_execute = "V8.Execute"; |
| 1133 const char* Logger::TimerEventScope::v8_external = "V8.External"; | 1139 const char* Logger::TimerEventScope::v8_external = "V8.External"; |
| 1134 const char* Logger::TimerEventScope::v8_ic_miss = "V8.IcMiss"; | 1140 const char* Logger::TimerEventScope::v8_ic_miss = "V8.IcMiss"; |
| 1135 | 1141 |
| (...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2119 if (jit_logger_) { | 2125 if (jit_logger_) { |
| 2120 removeCodeEventListener(jit_logger_); | 2126 removeCodeEventListener(jit_logger_); |
| 2121 delete jit_logger_; | 2127 delete jit_logger_; |
| 2122 jit_logger_ = NULL; | 2128 jit_logger_ = NULL; |
| 2123 } | 2129 } |
| 2124 | 2130 |
| 2125 return log_->Close(); | 2131 return log_->Close(); |
| 2126 } | 2132 } |
| 2127 | 2133 |
| 2128 } } // namespace v8::internal | 2134 } } // namespace v8::internal |
| OLD | NEW |