Showing the changes to libraries/script-engine/src/ScriptEngine.h (1 of 6 files). Show all
Unified · Split
| @@ -413,6 +413,16 @@ public: · 412 unmodified lines | ||
| 413 | 413 | */ |
| 414 | 414 | virtual void dumpHeapObjectStatistics() = 0; |
| 415 | 415 | |
| 416 | + /** | |
| 417 | + * @brief Starts collecting profiling data. | |
| 418 | + */ | |
| 419 | + virtual void startProfiling() = 0; | |
| 420 | + | |
| 421 | + /** | |
| 422 | + * @brief Stops collecting profiling data and saves it to a CSV file in Logs directory. | |
| 423 | + */ | |
| 424 | + virtual void stopProfilingAndSave() = 0; | |
| 425 | + | |
| 416 | 426 | public: |
| 417 | 427 | // helper to detect and log warnings when other code invokes QScriptEngine/BaseScriptEngine in thread-unsafe ways |
| 418 | 428 | bool IS_THREADSAFE_INVOCATION(const QString& method); |