IActiveScriptProfilerCallback Interface

Provides methods that are used by the scripting engine to notify a profiler object when events occur. This interface is implemented by the profiler object.

Methods

Method Description
IActiveScriptProfilerCallback::Initialize Called to initialize the profiler object whenever profiling is started on a scripting engine.
IActiveScriptProfilerCallback::Shutdown Called to free and release the profiler object whenever profiling is stopped on a scripting engine.
IActiveScriptProfilerCallback::ScriptCompiled Notifies the profiler object that the scripting engine compiled the script.
IActiveScriptProfilerCallback::FunctionCompiled Notifies the profiler object that the scripting engine encountered a function when compiling a script.
IActiveScriptProfilerCallback::OnFunctionEnter Notifies the profiler object that the scripting engine is about to execute a function call that is not a call into the Document Object Model (DOM).
IActiveScriptProfilerCallback::OnFunctionExit Notifies the profiler object that the scripting engine finished executing a function call that is not a call into the DOM.

Remarks

Notification of function calls into the Document Object Model (DOM) is provided by the IActiveScriptProfilerCallback2 Interface.

Note

To add the ability to start and stop profiling when a script is running, call the following methods. By using these methods, you can obtain the complete call stack if JavaScript is running when you start or stop profiling.

See also

Active Script Profiler Interfaces