Index: net/proxy/proxy_resolver_v8.h |
diff --git a/net/proxy/proxy_resolver_v8.h b/net/proxy/proxy_resolver_v8.h |
index 3adc672a1ffebdb9db891e255f06fd25c704406a..4b5760b41f2c011ce59daf93a29757f84158adca 100644 |
--- a/net/proxy/proxy_resolver_v8.h |
+++ b/net/proxy/proxy_resolver_v8.h |
@@ -11,6 +11,7 @@ |
#include "net/proxy/proxy_resolver.h" |
namespace v8 { |
+class HeapStatistics; |
class Isolate; |
} // namespace v8 |
@@ -95,6 +96,11 @@ class NET_EXPORT_PRIVATE ProxyResolverV8 : public ProxyResolver { |
static void RememberDefaultIsolate(); |
static v8::Isolate* GetDefaultIsolate(); |
+ // Get total/ued heap memory usage of all v8 instances used by the proxy |
+ // resolver. |
+ static size_t GetTotalHeapSize(); |
+ static size_t GetUsedHeapSize(); |
+ |
private: |
static v8::Isolate* g_default_isolate_; |