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

Side by Side Diff: src/heap/gc-tracer.h

Issue 1159513003: Even without --trace-gc dump the last few GC messages on OOM (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/api.cc ('k') | src/heap/gc-tracer.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_HEAP_GC_TRACER_H_ 5 #ifndef V8_HEAP_GC_TRACER_H_
6 #define V8_HEAP_GC_TRACER_H_ 6 #define V8_HEAP_GC_TRACER_H_
7 7
8 #include "src/base/platform/platform.h" 8 #include "src/base/platform/platform.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 413
414 private: 414 private:
415 // Print one detailed trace line in name=value format. 415 // Print one detailed trace line in name=value format.
416 // TODO(ernstm): Move to Heap. 416 // TODO(ernstm): Move to Heap.
417 void PrintNVP() const; 417 void PrintNVP() const;
418 418
419 // Print one trace line. 419 // Print one trace line.
420 // TODO(ernstm): Move to Heap. 420 // TODO(ernstm): Move to Heap.
421 void Print() const; 421 void Print() const;
422 422
423 // Prints a line and also adds it to the heap's ring buffer so that
424 // it can be included in later crash dumps.
425 void Output(const char* format, ...) const;
426
423 // Compute the mean duration of the events in the given ring buffer. 427 // Compute the mean duration of the events in the given ring buffer.
424 double MeanDuration(const EventBuffer& events) const; 428 double MeanDuration(const EventBuffer& events) const;
425 429
426 // Compute the max duration of the events in the given ring buffer. 430 // Compute the max duration of the events in the given ring buffer.
427 double MaxDuration(const EventBuffer& events) const; 431 double MaxDuration(const EventBuffer& events) const;
428 432
429 void ClearMarkCompactStatistics() { 433 void ClearMarkCompactStatistics() {
430 cumulative_incremental_marking_steps_ = 0; 434 cumulative_incremental_marking_steps_ = 0;
431 cumulative_incremental_marking_bytes_ = 0; 435 cumulative_incremental_marking_bytes_ = 0;
432 cumulative_incremental_marking_duration_ = 0; 436 cumulative_incremental_marking_duration_ = 0;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 511
508 // Counts how many tracers were started without stopping. 512 // Counts how many tracers were started without stopping.
509 int start_counter_; 513 int start_counter_;
510 514
511 DISALLOW_COPY_AND_ASSIGN(GCTracer); 515 DISALLOW_COPY_AND_ASSIGN(GCTracer);
512 }; 516 };
513 } 517 }
514 } // namespace v8::internal 518 } // namespace v8::internal
515 519
516 #endif // V8_HEAP_GC_TRACER_H_ 520 #endif // V8_HEAP_GC_TRACER_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/heap/gc-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698