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

Unified Diff: Source/web/WebLeakDetector.cpp

Issue 1223713003: Leak Detector: Add support for ScriptPromise on Blink side (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months 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 | « Source/bindings/core/v8/ScriptPromise.cpp ('k') | public/web/WebLeakDetector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebLeakDetector.cpp
diff --git a/Source/web/WebLeakDetector.cpp b/Source/web/WebLeakDetector.cpp
index 513423ae9bf60e51bffe45418b72dd05b266b220..7baa23b21b2927e662525594849e439ce5a49eab 100644
--- a/Source/web/WebLeakDetector.cpp
+++ b/Source/web/WebLeakDetector.cpp
@@ -32,6 +32,7 @@
#include "public/web/WebLeakDetector.h"
+#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8GCController.h"
#include "core/dom/ActiveDOMObject.h"
@@ -134,6 +135,7 @@ void WebLeakDetectorImpl::delayedReport(Timer<WebLeakDetectorImpl>*)
result.numberOfLiveRenderObjects = result.numberOfLiveLayoutObjects;
result.numberOfLiveResources = Resource::instanceCount();
result.numberOfLiveActiveDOMObjects = ActiveDOMObject::instanceCount();
+ result.numberOfLiveScriptPromises = ScriptPromise::instanceCount();
m_client->onLeakDetectionComplete(result);
« no previous file with comments | « Source/bindings/core/v8/ScriptPromise.cpp ('k') | public/web/WebLeakDetector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698