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

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: Adding type name. 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
« src/api.cc ('K') | « src/api.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index 71ee26e2cecc76f9784c8790947db2a4c226733f..8db8e49bd9bc701a414549e1e8e47be30dd4110d 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) {
+ return object_counts_last_time_[type];
picksi 2015/05/05 14:01:55 Should we DCHECK the array bounds here for safety?
ssid 2015/05/05 14:48:01 Done.
+ }
+ size_t object_size_last_gc(size_t type) {
+ return object_sizes_last_time_[type];
+ }
+
// 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);
Primiano Tucci (use gerrit) 2015/05/05 14:17:53 Should this be near the other ones you are adding?
ssid 2015/05/05 14:26:16 the previous function does the same kind of operat
ulan 2015/05/06 12:46:02 This place is correct. The "index" has meaning onl
// We don't use a LockGuard here since we want to lock the heap
// only when FLAG_concurrent_recompilation is true.
« src/api.cc ('K') | « src/api.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698