Showing the changes to libraries/script-engine/src/ScriptManagerScriptingInterface.h (1 of 6 files). Show all
Unified · Split
| @@ -53,7 +53,7 @@ · 52 unmodified lines | ||
| 53 | 53 | class TestQObject : public QObject { |
| 54 | 54 | Q_OBJECT |
| 55 | 55 | public: |
| 56 | − Q_INVOKABLE virtual void testMethod() { qDebug() << "TestQObject::testMethod"; }; | |
| 56 | + //Q_INVOKABLE virtual void testMethod() { qDebug() << "TestQObject::testMethod"; }; | |
| 57 | 57 | }; |
| 58 | 58 | |
| 59 | 59 | class ScriptManagerScriptingInterface : public QObject { |
| @@ -510,6 +510,18 @@ public: · 450 unmodified lines | ||
| 510 | 510 | */ |
| 511 | 511 | Q_INVOKABLE QVariantMap getMemoryUsageStatistics(); |
| 512 | 512 | |
| 513 | + /**jsdoc | |
| 514 | + * Start collecting object statistics that can later be reported with Script.dumpHeapObjectStatistics(). | |
| 515 | + * @function Script.dumpHeapObjectStatistics | |
| 516 | + */ | |
| 517 | + Q_INVOKABLE void startCollectingObjectStatistics(); | |
| 518 | + | |
| 519 | + /**jsdoc | |
| 520 | + * Prints heap statistics to a file. Collecting needs to first be started with Script.dumpHeapObjectStatistics(). | |
| 521 | + * @function Script.dumpHeapObjectStatistics | |
| 522 | + */ | |
| 523 | + Q_INVOKABLE void dumpHeapObjectStatistics(); | |
| 524 | + | |
| 513 | 525 | /**jsdoc |
| 514 | 526 | * Create test object for garbage collector debugging. |
| 515 | 527 | * @function Script.createGarbageCollectorDebuggingObject() |