History

Work on fixing V8 memory leaks, memory leak test

ksuprynowicz committed 3 years ago

Commit 42704ea1 parent f016a199 files · +46 −3Browse files

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

Unified · Split

libraries/script-engine/src/ScriptManagerScriptingInterface.h+14−0
@@ -49,6 +49,13 @@ · 48 unmodified lines
4949 * @property {Script.ResourceBuckets} ExternalPaths - External resource buckets.
5050 */
5151
52+// V8TODO: this should be moved to somewhere test-related
53+class TestQObject : public QObject {
54+ Q_OBJECT
55+public:
56+ Q_INVOKABLE virtual void testMethod() { qDebug() << "TestQObject::testMethod"; };
57+};
58+
5259 class ScriptManagerScriptingInterface : public QObject {
5360 Q_OBJECT
5461 public:
@@ -503,6 +510,13 @@ public: · 448 unmodified lines
503510 */
504511 Q_INVOKABLE QVariantMap getMemoryUsageStatistics();
505512
513+ /**jsdoc
514+ * Create test object for garbage collector debugging.
515+ * @function Script.createGarbageCollectorDebuggingObject()
516+ * @Returns Test object.
517+ */
518+ Q_INVOKABLE ScriptValue createGarbageCollectorDebuggingObject();
519+
506520 signals:
507521
508522 /**jsdoc