The Active Script Profiler Interfaces enable profiling of a scripting engine. Active Script Profiling consists of the following parts:
The language engine executes the script. It provides methods that enable profiling of the script code as it is executed. When profiling is enabled, the language engine takes the class identifier (CLSID) of the profiler COM object as an argument. It creates an instance of the profiler COM object and then calls into the profiler when various events occur.
The language engine implements IActiveScriptProfilerControl Interface.
The host creates the language engine and provides the language engine with scripts to be executed. A smart host also provides the document context that can be used by a debugger or profiler to provide better information when you are debugging or profiling.
The profiler receives the calls from the language engine when various events occur. The profiler must be registered as a COM object and must implement the IActiveScriptProfilerCallback Interface interface.