Index: include/v8-profiler.h |
diff --git a/include/v8-profiler.h b/include/v8-profiler.h |
index d9a0c4e2df5b55d79ad082bab435b922d23ef148..fa5a4ebebe1e391220f77df046fadda356d19700 100644 |
--- a/include/v8-profiler.h |
+++ b/include/v8-profiler.h |
@@ -559,6 +559,18 @@ class V8EXPORT RetainedObjectInfo { // NOLINT |
}; |
+/** |
+ * A struct for exporting HeapStats data from V8, using "push" model. |
+ */ |
+struct HeapStatsUpdate { |
+ HeapStatsUpdate(uint32_t index, uint32_t count, uint32_t size) |
+ : index(index), count(count), size(size) { } |
+ uint32_t index; // Index of the time interval that was changed. |
+ uint32_t count; // New value of count field for the interval with this index. |
+ uint32_t size; // New value of size field for the interval with this index. |
+}; |
+ |
+ |
} // namespace v8 |