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

Unified Diff: include/v8.h

Issue 59373003: AllocationProfiler: introduce allocation_profiler flag in V8 api. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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 | src/allocation-tracker.cc » ('j') | src/x64/macro-assembler-x64.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 44a74ed5fea97282ce307cafd3d88df161da1adc..70b6b484b4930bb79c10748c61c11da9902912da 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -4587,6 +4587,24 @@ class V8_EXPORT V8 {
FunctionEntryHook entry_hook);
/**
+ * Allows the host application to enable allocation profiler.
+ *
+ * \param isolate the isolate to operate on.
+ * \returns true on success, false on failure.
+ * \note Enabling allocation profiler can only be done very early in
+ * an isolates lifetime, and once set, it cannot be revoked.
+ * It affects isolate initalization time.
+ */
+ static bool EnableAllocationProfiler(Isolate* isolate);
+
+ /**
+ * Allows the host application to get the status of allocation profiler.
+ *
+ * \param isolate the isolate to operate on.
+ * \returns true if profiler has been enabled and false otherwise.
+ */ static bool IsAllocationProfilerEnabled(Isolate* isolate);
alph 2013/11/05 13:55:20 nit: a new line
+
+ /**
* Allows the host application to provide the address of a function that is
* notified each time code is added, moved or removed.
*
« no previous file with comments | « no previous file | src/allocation-tracker.cc » ('j') | src/x64/macro-assembler-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698