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

Unified Diff: src/heap/heap.h

Issue 1113233002: Adding api to get last gc object statistics for chrome://tracing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixing comments. Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index 71ee26e2cecc76f9784c8790947db2a4c226733f..195dc979144806bb1abbe16877c46f1c6a71d63c 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -1017,6 +1017,13 @@ class Heap {
// Print short heap statistics.
void PrintShortHeapStatistics();
+ size_t object_count_last_gc(size_t type) {
ulan 2015/05/06 12:46:02 s/type/index/ here and below
ssid 2015/05/07 13:53:03 Done.
+ return type < OBJECT_STATS_COUNT ? object_counts_last_time_[type] : 0;
+ }
+ size_t object_size_last_gc(size_t type) {
+ return type < OBJECT_STATS_COUNT ? object_sizes_last_time_[type] : 0;
+ }
+
// Write barrier support for address[offset] = o.
INLINE(void RecordWrite(Address address, int offset));
@@ -1445,6 +1452,7 @@ class Heap {
void TraceObjectStats();
void TraceObjectStat(const char* name, int count, int size, double time);
void CheckpointObjectStats();
+ const char* GetObjectTypeName(size_t index);
// We don't use a LockGuard here since we want to lock the heap
// only when FLAG_concurrent_recompilation is true.

Powered by Google App Engine
This is Rietveld 408576698