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

Side by Side Diff: src/log.h

Issue 11428025: Include more information in --prof log. (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 | « no previous file | src/log.cc » ('j') | tools/plot-timer-events.js » ('J')
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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 Address* stack); 268 Address* stack);
269 void HeapSampleStats(const char* space, const char* kind, 269 void HeapSampleStats(const char* space, const char* kind,
270 intptr_t capacity, intptr_t used); 270 intptr_t capacity, intptr_t used);
271 271
272 void SharedLibraryEvent(const char* library_path, 272 void SharedLibraryEvent(const char* library_path,
273 uintptr_t start, 273 uintptr_t start,
274 uintptr_t end); 274 uintptr_t end);
275 void SharedLibraryEvent(const wchar_t* library_path, 275 void SharedLibraryEvent(const wchar_t* library_path,
276 uintptr_t start, 276 uintptr_t start,
277 uintptr_t end); 277 uintptr_t end);
278
279 // ==== Events logged by --log-timer-events. ====
278 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);
279 282
280 class TimerEventScope { 283 class TimerEventScope {
281 public: 284 public:
282 TimerEventScope(Isolate* isolate, const char* name) 285 TimerEventScope(Isolate* isolate, const char* name)
283 : isolate_(isolate), name_(name), start_(0) { 286 : isolate_(isolate), name_(name), start_(0) {
284 if (FLAG_log_timer_events) start_ = OS::Ticks(); 287 if (FLAG_log_timer_events) start_ = OS::Ticks();
285 } 288 }
286 289
287 ~TimerEventScope() { 290 ~TimerEventScope() {
288 if (FLAG_log_timer_events) LogTimerEvent(); 291 if (FLAG_log_timer_events) LogTimerEvent();
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 Address last_address_; 472 Address last_address_;
470 // Logger::TickEvent(...) 473 // Logger::TickEvent(...)
471 Address prev_sp_; 474 Address prev_sp_;
472 Address prev_function_; 475 Address prev_function_;
473 // Logger::MoveEventInternal(...) 476 // Logger::MoveEventInternal(...)
474 Address prev_to_; 477 Address prev_to_;
475 // Logger::FunctionCreateEvent(...) 478 // Logger::FunctionCreateEvent(...)
476 Address prev_code_; 479 Address prev_code_;
477 480
478 int64_t epoch_; 481 int64_t epoch_;
482 static int64_t enter_external_;
479 483
480 friend class CpuProfiler; 484 friend class CpuProfiler;
481 }; 485 };
482 486
483 487
484 // Process wide registry of samplers. 488 // Process wide registry of samplers.
485 class SamplerRegistry : public AllStatic { 489 class SamplerRegistry : public AllStatic {
486 public: 490 public:
487 enum State { 491 enum State {
488 HAS_NO_SAMPLERS, 492 HAS_NO_SAMPLERS,
(...skipping 29 matching lines...) Expand all
518 // Class that extracts stack trace, used for profiling. 522 // Class that extracts stack trace, used for profiling.
519 class StackTracer : public AllStatic { 523 class StackTracer : public AllStatic {
520 public: 524 public:
521 static void Trace(Isolate* isolate, TickSample* sample); 525 static void Trace(Isolate* isolate, TickSample* sample);
522 }; 526 };
523 527
524 } } // namespace v8::internal 528 } } // namespace v8::internal
525 529
526 530
527 #endif // V8_LOG_H_ 531 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « no previous file | src/log.cc » ('j') | tools/plot-timer-events.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698