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

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 the comment with NumberOfTrackedHeapObjectTypes. 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
« no previous file with comments | « 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 dfbcc701e6939f5a7215d19c9118f09440fe9121..6a3e769749b4db5a169924fde56d62bd8fab7641 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -1022,6 +1022,13 @@ class Heap {
// Print short heap statistics.
void PrintShortHeapStatistics();
+ size_t object_count_last_gc(size_t index) {
+ return index < OBJECT_STATS_COUNT ? object_counts_last_time_[index] : 0;
+ }
+ size_t object_size_last_gc(size_t index) {
+ return index < OBJECT_STATS_COUNT ? object_sizes_last_time_[index] : 0;
+ }
+
// Write barrier support for address[offset] = o.
INLINE(void RecordWrite(Address address, int offset));
@@ -1452,6 +1459,8 @@ class Heap {
void TraceObjectStats();
void TraceObjectStat(const char* name, int count, int size, double time);
void CheckpointObjectStats();
+ bool GetObjectTypeName(size_t index, const char** object_type,
+ const char** object_sub_type);
void RegisterStrongRoots(Object** start, Object** end);
void UnregisterStrongRoots(Object** start);
« no previous file with comments | « src/api.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698