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

Side by Side Diff: src/log.h

Issue 655813002: Fix V8's default timer event logger. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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/isolate.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 // 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 uintptr_t end); 293 uintptr_t end);
294 294
295 void CodeDeoptEvent(Code* code); 295 void CodeDeoptEvent(Code* code);
296 void CurrentTimeEvent(); 296 void CurrentTimeEvent();
297 297
298 void TimerEvent(StartEnd se, const char* name); 298 void TimerEvent(StartEnd se, const char* name);
299 299
300 static void EnterExternal(Isolate* isolate); 300 static void EnterExternal(Isolate* isolate);
301 static void LeaveExternal(Isolate* isolate); 301 static void LeaveExternal(Isolate* isolate);
302 302
303 static void EmptyTimerEventsLogger(const char* name, int se) {} 303 static inline void CallEventLogger(Isolate* isolate, const char* name,
304 static void DefaultTimerEventsLogger(const char* name, int se); 304 StartEnd se, bool expose_to_api);
305 305
306 // ==== Events logged by --log-regexp ==== 306 // ==== Events logged by --log-regexp ====
307 // Regexp compilation and execution events. 307 // Regexp compilation and execution events.
308 308
309 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); 309 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache);
310 310
311 bool is_logging() { 311 bool is_logging() {
312 return is_logging_; 312 return is_logging_;
313 } 313 }
314 314
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 int length) = 0; 532 int length) = 0;
533 533
534 NameBuffer* name_buffer_; 534 NameBuffer* name_buffer_;
535 }; 535 };
536 536
537 537
538 } } // namespace v8::internal 538 } } // namespace v8::internal
539 539
540 540
541 #endif // V8_LOG_H_ 541 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698