Chromium Code Reviews| Index: include/v8-profiler.h |
| =================================================================== |
| --- include/v8-profiler.h (revision 10391) |
| +++ include/v8-profiler.h (working copy) |
| @@ -434,6 +434,22 @@ |
| * handle. |
| */ |
| static const uint16_t kPersistentHandleNoClassId = 0; |
| + |
| + |
| + /** |
| + * Interface for iterating though all external resource in the heap. |
| + */ |
| + class ExternalResourceVisitor { |
|
mnaganov (inactive)
2012/01/11 18:50:23
You need to put V8EXPORT before the class name.
yurys
2012/01/11 19:50:13
Done.
|
| + public: |
| + virtual void VisitExternalString(Handle<String> string) {} |
| + virtual ~ExternalResourceVisitor() {} |
|
mnaganov (inactive)
2012/01/11 18:50:23
Destructor must be the first.
yurys
2012/01/11 19:50:13
Done.
|
| + }; |
| + |
| + /** |
| + * Iterates through all external resources referenced from current isolate |
| + * heap. |
| + */ |
| + static void VisitExternalResources(ExternalResourceVisitor* visitor); |
|
mnaganov (inactive)
2012/01/11 18:50:23
I'm not sure HeapProfiler class is a good place fo
yurys
2012/01/11 19:50:13
Since it is used to analyze heap I decided to put
|
| }; |