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

Side by Side Diff: src/log.h

Issue 11348298: Take instrumentation overhead into account when plotting. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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/flag-definitions.h ('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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 void TimerEvent(const char* name, int64_t start, int64_t end); 280 void TimerEvent(const char* name, int64_t start, int64_t end);
281 void ExternalSwitch(StateTag old_tag, StateTag new_tag); 281 void ExternalSwitch(StateTag old_tag, StateTag new_tag);
282 282
283 static void EnterExternal(); 283 static void EnterExternal();
284 static void LeaveExternal(); 284 static void LeaveExternal();
285 285
286 class TimerEventScope { 286 class TimerEventScope {
287 public: 287 public:
288 TimerEventScope(Isolate* isolate, const char* name) 288 TimerEventScope(Isolate* isolate, const char* name)
289 : isolate_(isolate), name_(name), start_(0) { 289 : isolate_(isolate), name_(name), start_(0) {
290 if (FLAG_log_timer_events) start_ = OS::Ticks(); 290 if (FLAG_log_internal_timer_events) start_ = OS::Ticks();
291 } 291 }
292 292
293 ~TimerEventScope() { 293 ~TimerEventScope() {
294 if (FLAG_log_timer_events) LogTimerEvent(); 294 if (FLAG_log_internal_timer_events) LogTimerEvent();
295 } 295 }
296 296
297 void LogTimerEvent(); 297 void LogTimerEvent();
298 298
299 static const char* v8_recompile_synchronous; 299 static const char* v8_recompile_synchronous;
300 static const char* v8_recompile_parallel; 300 static const char* v8_recompile_parallel;
301 static const char* v8_compile_full_code; 301 static const char* v8_compile_full_code;
302 static const char* v8_execute; 302 static const char* v8_execute;
303 303
304 private: 304 private:
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 // Class that extracts stack trace, used for profiling. 525 // Class that extracts stack trace, used for profiling.
526 class StackTracer : public AllStatic { 526 class StackTracer : public AllStatic {
527 public: 527 public:
528 static void Trace(Isolate* isolate, TickSample* sample); 528 static void Trace(Isolate* isolate, TickSample* sample);
529 }; 529 };
530 530
531 } } // namespace v8::internal 531 } } // namespace v8::internal
532 532
533 533
534 #endif // V8_LOG_H_ 534 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698