1
0
forked from mirrors/0ad

First draft of a GPG3-style profiler (including tracing into scripts, after a fashion)

This was SVN commit r2090.
This commit is contained in:
MarkT
2005-03-30 16:14:19 +00:00
parent 9ce31a5c5c
commit bb7a22f32a
32 changed files with 1262 additions and 165 deletions
+4
View File
@@ -79,7 +79,9 @@ void CScheduler::update(size_t simElapsed)
timeFunction.pop();
jsval rval;
m_abortInterval = false;
JS_CallFunction( g_ScriptingHost.getContext(), top.operateOn, top.function, 0, NULL, &rval );
if( top.isRecurrent && !m_abortInterval )
pushInterval( top.delay, top.delay, top.function, top.operateOn );
}
@@ -90,6 +92,8 @@ void CScheduler::update(size_t simElapsed)
break;
frameFunction.pop();
jsval rval;
JS_CallFunction( g_ScriptingHost.getContext(), top.operateOn, top.function, 0, NULL, &rval );
}
}