OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 void SharedLibraryEvent(const char* library_path, | 286 void SharedLibraryEvent(const char* library_path, |
287 uintptr_t start, | 287 uintptr_t start, |
288 uintptr_t end); | 288 uintptr_t end); |
289 void SharedLibraryEvent(const wchar_t* library_path, | 289 void SharedLibraryEvent(const wchar_t* library_path, |
290 uintptr_t start, | 290 uintptr_t start, |
291 uintptr_t end); | 291 uintptr_t end); |
292 | 292 |
293 // ==== Events logged by --log-timer-events. ==== | 293 // ==== Events logged by --log-timer-events. ==== |
294 enum StartEnd { START, END }; | 294 enum StartEnd { START, END }; |
295 | 295 |
| 296 void CodeDeoptEvent(Code* code); |
| 297 |
296 void TimerEvent(StartEnd se, const char* name); | 298 void TimerEvent(StartEnd se, const char* name); |
297 | 299 |
298 static void EnterExternal(Isolate* isolate); | 300 static void EnterExternal(Isolate* isolate); |
299 static void LeaveExternal(Isolate* isolate); | 301 static void LeaveExternal(Isolate* isolate); |
300 | 302 |
301 class TimerEventScope { | 303 class TimerEventScope { |
302 public: | 304 public: |
303 TimerEventScope(Isolate* isolate, const char* name) | 305 TimerEventScope(Isolate* isolate, const char* name) |
304 : isolate_(isolate), name_(name) { | 306 : isolate_(isolate), name_(name) { |
305 if (FLAG_log_internal_timer_events) LogTimerEvent(START); | 307 if (FLAG_log_internal_timer_events) LogTimerEvent(START); |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 int64_t epoch_; | 521 int64_t epoch_; |
520 | 522 |
521 friend class CpuProfiler; | 523 friend class CpuProfiler; |
522 }; | 524 }; |
523 | 525 |
524 | 526 |
525 } } // namespace v8::internal | 527 } } // namespace v8::internal |
526 | 528 |
527 | 529 |
528 #endif // V8_LOG_H_ | 530 #endif // V8_LOG_H_ |
OLD | NEW |