| 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 "allocation.h" | 8 #include "allocation.h" |
| 9 #include "objects.h" | 9 #include "objects.h" |
| 10 #include "platform.h" | 10 #include "platform.h" |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 private: | 319 private: |
| 320 Isolate* isolate_; | 320 Isolate* isolate_; |
| 321 const char* name_; | 321 const char* name_; |
| 322 }; | 322 }; |
| 323 | 323 |
| 324 // ==== Events logged by --log-regexp ==== | 324 // ==== Events logged by --log-regexp ==== |
| 325 // Regexp compilation and execution events. | 325 // Regexp compilation and execution events. |
| 326 | 326 |
| 327 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); | 327 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); |
| 328 | 328 |
| 329 // Log an event reported from generated code | |
| 330 void LogRuntime(Vector<const char> format, Handle<JSArray> args); | |
| 331 | |
| 332 bool is_logging() { | 329 bool is_logging() { |
| 333 return is_logging_; | 330 return is_logging_; |
| 334 } | 331 } |
| 335 | 332 |
| 336 bool is_logging_code_events() { | 333 bool is_logging_code_events() { |
| 337 return is_logging() || jit_logger_ != NULL; | 334 return is_logging() || jit_logger_ != NULL; |
| 338 } | 335 } |
| 339 | 336 |
| 340 // Stop collection of profiling data. | 337 // Stop collection of profiling data. |
| 341 // When data collection is paused, CPU Tick events are discarded. | 338 // When data collection is paused, CPU Tick events are discarded. |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 int length) = 0; | 515 int length) = 0; |
| 519 | 516 |
| 520 NameBuffer* name_buffer_; | 517 NameBuffer* name_buffer_; |
| 521 }; | 518 }; |
| 522 | 519 |
| 523 | 520 |
| 524 } } // namespace v8::internal | 521 } } // namespace v8::internal |
| 525 | 522 |
| 526 | 523 |
| 527 #endif // V8_LOG_H_ | 524 #endif // V8_LOG_H_ |
| OLD | NEW |