Chromium Code Reviews| 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. |
| * |