History

adding profiling on the script engine call back to timer event

Sam Cake committed 9 years ago

Commit c35be441 parent 189ad9c3 files · +2 −3Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 3 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+1−0
@@ -1284,6 +1284,7 @@ void ScriptEngine::timerFired() { · 1283 unmodified lines
1284 1284
1285 // call the associated JS function, if it exists1285 // call the associated JS function, if it exists
1286 if (timerData.function.isValid()) {1286 if (timerData.function.isValid()) {
1287 PROFILE_RANGE(script, __FUNCTION__);
1287 auto preTimer = p_high_resolution_clock::now();1288 auto preTimer = p_high_resolution_clock::now();
1288 callWithEnvironment(timerData.definingEntityIdentifier, timerData.definingSandboxURL, timerData.function, timerData.function, QScriptValueList());1289 callWithEnvironment(timerData.definingEntityIdentifier, timerData.definingSandboxURL, timerData.function, timerData.function, QScriptValueList());
1289 auto postTimer = p_high_resolution_clock::now();1290 auto postTimer = p_high_resolution_clock::now();