Hide QObject signals from script engine and switch off script memory reporting

This commit is contained in:
ksuprynowicz 2023-06-04 01:07:26 +02:00
parent 8c9a88b2d9
commit da9b9f76af
3 changed files with 9 additions and 4 deletions

View file

@ -280,6 +280,12 @@ void ScriptObjectV8Proxy::investigate() {
case QMetaMethod::Constructor: case QMetaMethod::Constructor:
continue; continue;
case QMetaMethod::Signal: case QMetaMethod::Signal:
if (szName == "destroyed") {
continue;
}
if (szName == "objectNameChanged") {
continue;
}
isSignal = true; isSignal = true;
break; break;
case QMetaMethod::Slot: case QMetaMethod::Slot:

View file

@ -39,8 +39,8 @@ var DEFAULT_SCRIPTS_COMBINED = [
"system/onEscape.js", "system/onEscape.js",
"system/onFirstRun.js", "system/onFirstRun.js",
"system/appreciate/appreciate_app.js", "system/appreciate/appreciate_app.js",
"system/places/places.js", "system/places/places.js"
"developer/debugging/scriptMemoryReport.js" //"developer/debugging/scriptMemoryReport.js"
]; ];
var DEFAULT_SCRIPTS_SEPARATE = [ var DEFAULT_SCRIPTS_SEPARATE = [
"system/controllers/controllerScripts.js", "system/controllers/controllerScripts.js",

View file

@ -41,8 +41,7 @@ var CONTOLLER_SCRIPTS = [
"controllerModules/trackedHandTablet.js" "controllerModules/trackedHandTablet.js"
]; ];
Script.include("../../developer/debugging/scriptMemoryReport.js"); //Script.include("../../developer/debugging/scriptMemoryReport.js");
//Script.include("developer/debugging/scriptMemoryReport.js");
var DEBUG_MENU_ITEM = "Debug defaultScripts.js"; var DEBUG_MENU_ITEM = "Debug defaultScripts.js";