Chromium Code Reviews| 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. |