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
12841284
12851285 // call the associated JS function, if it exists
12861286 if (timerData.function.isValid()) {
1287+ PROFILE_RANGE(script, __FUNCTION__);
12871288 auto preTimer = p_high_resolution_clock::now();
12881289 callWithEnvironment(timerData.definingEntityIdentifier, timerData.definingSandboxURL, timerData.function, timerData.function, QScriptValueList());
12891290 auto postTimer = p_high_resolution_clock::now();