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

Side by Side Diff: src/log.h

Issue 651413002: Make event logger slightly more light-weight. (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-inl.h » ('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 inline void CallEventLogger(Isolate* isolate, const char* name, 303 static void DefaultEventLoggerSentinel(const char* name, int event) {}
304 StartEnd se, bool expose_to_api); 304
305 INLINE(static void CallEventLogger(Isolate* isolate, const char* name,
306 StartEnd se, bool expose_to_api));
305 307
306 // ==== Events logged by --log-regexp ==== 308 // ==== Events logged by --log-regexp ====
307 // Regexp compilation and execution events. 309 // Regexp compilation and execution events.
308 310
309 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); 311 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache);
310 312
311 bool is_logging() { 313 bool is_logging() {
312 return is_logging_; 314 return is_logging_;
313 } 315 }
314 316
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 int length) = 0; 534 int length) = 0;
533 535
534 NameBuffer* name_buffer_; 536 NameBuffer* name_buffer_;
535 }; 537 };
536 538
537 539
538 } } // namespace v8::internal 540 } } // namespace v8::internal
539 541
540 542
541 #endif // V8_LOG_H_ 543 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/log-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698