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
49 * @property {Script.ResourceBuckets} ExternalPaths - External resource buckets.49 * @property {Script.ResourceBuckets} ExternalPaths - External resource buckets.
50 */50 */
51 51
52// V8TODO: this should be moved to somewhere test-related
53class TestQObject : public QObject {
54 Q_OBJECT
55public:
56 Q_INVOKABLE virtual void testMethod() { qDebug() << "TestQObject::testMethod"; };
57};
58
52class ScriptManagerScriptingInterface : public QObject {59class ScriptManagerScriptingInterface : public QObject {
53 Q_OBJECT60 Q_OBJECT
54public:61public:
@@ -503,6 +510,13 @@ public: · 448 unmodified lines
503 */510 */
504 Q_INVOKABLE QVariantMap getMemoryUsageStatistics();511 Q_INVOKABLE QVariantMap getMemoryUsageStatistics();
505 512
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
506signals:520signals:
507 521
508 /**jsdoc522 /**jsdoc