History

V8 memory leak fix and optimizations

ksuprynowicz committed 3 years ago

Commit 782c84b1 parent eabc7277 files · +106 −21Browse files

Showing the changes to libraries/script-engine/src/ScriptManagerScriptingInterface.cpp (1 of 7 files). Show all

Unified · Split

libraries/script-engine/src/ScriptManagerScriptingInterface.cpp+1−1
@@ -49,7 +49,6 @@ · 48 unmodified lines
4949 void ScriptManagerScriptingInterface::scriptManagerException(std::shared_ptr<ScriptException> exception) {
5050 // V8TODO: What should we actually handle here?
5151
52−
5352 // emit unhandledException(exception.thrownValue);
5453 }
5554
@@ -64,6 +63,7 @@ QVariantMap ScriptManagerScriptingInterface::getMemoryUsageStatistics() { · 8 unmodified lines
6463 #ifdef OVERTE_V8_MEMORY_DEBUG
6564 map.insert("scriptValueCount", QVariant((qulonglong)(statistics.scriptValueCount)));
6665 map.insert("scriptValueProxyCount", QVariant((qulonglong)(statistics.scriptValueProxyCount)));
66+ map.insert("qObjectCount", QVariant((qulonglong)(statistics.qObjectCount)));
6767 #endif
6868 return map;
6969 }