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

Unified Diff: include/v8.h

Issue 10049002: Introduce a way to grab heap stats. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: comments addressed Created 8 years, 8 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 | « no previous file | include/v8-profiler.h » ('j') | test/cctest/test-heap-profiler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 33179f5bf0efe00fae3cf0da9502ed2345a17268..90bd772226216fba25852f8f681bd8d059df788f 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -3741,7 +3741,8 @@ class V8EXPORT Locker {
class V8EXPORT OutputStream { // NOLINT
public:
enum OutputEncoding {
- kAscii = 0 // 7-bit ASCII.
+ kAscii = 0, // 7-bit ASCII.
+ kUint32 = 1
};
enum WriteResult {
kContinue = 0,
@@ -3760,6 +3761,12 @@ class V8EXPORT OutputStream { // NOLINT
* will not be called in case writing was aborted.
*/
virtual WriteResult WriteAsciiChunk(char* data, int size) = 0;
+ /**
+ * Writes the next chunk of heap stats data into the stream. Writing
+ * can be stopped by returning kAbort as function result. EndOfStream
+ * will not be called in case writing was aborted.
+ */
+ virtual WriteResult WriteUint32Chunk(uint32_t* data, int count) = 0;
};
« no previous file with comments | « no previous file | include/v8-profiler.h » ('j') | test/cctest/test-heap-profiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698