Chromium Code Reviews| Index: include/v8-profiler.h |
| diff --git a/include/v8-profiler.h b/include/v8-profiler.h |
| index 007ae2eca55e411981171e3a34396f06f5b0236e..535e8212d61161d3cc3a09838d4515b4f5352265 100644 |
| --- a/include/v8-profiler.h |
| +++ b/include/v8-profiler.h |
| @@ -515,6 +515,11 @@ class V8_EXPORT AllocationProfile { |
| */ |
| class V8_EXPORT HeapProfiler { |
| public: |
| + enum SamplingFlags { |
| + kSamplingNoFlags = 0, |
| + kSamplingForceGC = 1 << 0, |
|
ulan
2016/05/04 13:13:06
To be more descriptive, maybe kSamplingForceGCAtAl
alph
2016/05/04 18:40:16
Don't think we should go into implementation detai
|
| + }; |
| + |
| /** |
| * Callback function invoked for obtaining RetainedObjectInfo for |
| * the given JavaScript wrapper object. It is prohibited to enter V8 |
| @@ -640,7 +645,8 @@ class V8_EXPORT HeapProfiler { |
| * Returns false if a sampling heap profiler is already running. |
| */ |
| bool StartSamplingHeapProfiler(uint64_t sample_interval = 512 * 1024, |
| - int stack_depth = 16); |
| + int stack_depth = 16, |
| + SamplingFlags flags = kSamplingNoFlags); |
| /** |
| * Stops the sampling heap profile and discards the current profile. |