Showing the changes to interface/src/scripting/TestScriptingInterface.cpp (1 of 7 files). Show all
Unified · Split
| @@ -141,6 +141,10 @@ void TestScriptingInterface::endTraceEvent(QString name) { · 140 unmodified lines | |||
| 141 | tracing::traceEvent(trace_test(), name, tracing::DurationEnd); | 141 | tracing::traceEvent(trace_test(), name, tracing::DurationEnd); |
| 142 | } | 142 | } |
| 143 | 143 | ||
| 144 | void TestScriptingInterface::savePhysicsSimulationStats(QString filename) { | ||
| 145 | qApp->saveNextPhysicsStats(filename); | ||
| 146 | } | ||
| 147 | |||
| 144 | void TestScriptingInterface::profileRange(const QString& name, QScriptValue fn) { | 148 | void TestScriptingInterface::profileRange(const QString& name, QScriptValue fn) { |
| 145 | PROFILE_RANGE(script, name); | 149 | PROFILE_RANGE(script, name); |
| 146 | fn.call(); | 150 | fn.call(); |