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
49void ScriptManagerScriptingInterface::scriptManagerException(std::shared_ptr<ScriptException> exception) {49void ScriptManagerScriptingInterface::scriptManagerException(std::shared_ptr<ScriptException> exception) {
50 // V8TODO: What should we actually handle here?50 // V8TODO: What should we actually handle here?
51 51
52
53 // emit unhandledException(exception.thrownValue);52 // emit unhandledException(exception.thrownValue);
54}53}
55 54
@@ -64,6 +63,7 @@ QVariantMap ScriptManagerScriptingInterface::getMemoryUsageStatistics() { · 8 unmodified lines
64#ifdef OVERTE_V8_MEMORY_DEBUG63#ifdef OVERTE_V8_MEMORY_DEBUG
65 map.insert("scriptValueCount", QVariant((qulonglong)(statistics.scriptValueCount)));64 map.insert("scriptValueCount", QVariant((qulonglong)(statistics.scriptValueCount)));
66 map.insert("scriptValueProxyCount", QVariant((qulonglong)(statistics.scriptValueProxyCount)));65 map.insert("scriptValueProxyCount", QVariant((qulonglong)(statistics.scriptValueProxyCount)));
66 map.insert("qObjectCount", QVariant((qulonglong)(statistics.qObjectCount)));
67#endif67#endif
68 return map;68 return map;
69}69}