Extensible and unobtrusive script performance monitoring and measurement
View Patent ↗A method, system and apparatus for the extensible and unobtrusive performance monitoring and measurement for scripts executing through a script engine. A script performance monitoring and measurement system can include a script engine programmed to execute a provided script and a script processor configured to provide a script to the script engine for execution. Importantly, the system can include a performance monitor disposed between the script processor and the script engine.
1. A script performance monitoring and measurement method comprising the steps of:
intercepting a request to a script engine to execute a referenced script;
initiating a process externally from said script engine to collect performance metrics for said referenced script; and,
requesting said script engine to execute said referenced script.
2. The method of claim 1 , wherein said intercepting step comprises the steps of:
exposing an interface for said script engine for executing a script; and,
accepting a method call defined by said interface to execute a referenced script.
3. The method of claim 1 , wherein said initiating step comprises the steps of:
recording a start time for executing said referenced script in said script engine;
recording a stop time for completing said executing of said referenced script; and,
computing a time of execution for said referenced script.