Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(581)

Side by Side Diff: src/log.h

Issue 17599007: Log deopts with --log-timer-events. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/deoptimizer.cc ('k') | src/log.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698