##DevTools API for preprocessor was deprecated and removed.
This DevTools Extension provide two tools based on script preprocessor API that you can use to trace JS execution and to measuring hits count.
- Profiler tool implements instrumentation profiler. Tool replaces all functions in script and injects code that captures timing information for each function. It is a useful tool to trace code execution and a rough estimate of time costs. Profiler generates source map for each processed source that allows you to navigate to original source code and, for example, set some breakpoints.
- Hits Counter tool measures the number of executions of each instruction. The tool can be useful when searching for unused code, or for measuring code coverage.
Extension uses next third party:
- Esprima for parsing JS
- Escodegen for generating modfied code with source map.
- Polymer for UI.
- codemirror and trace-viewer for tools UI.
- git clone https://github.com/ak239/devtools-preprocessor
- cd devtools-preprocessor
- bower install
- vulcanize -o ./Panel/build.html ./Panel/Panel.html --csp
- open extensions tab in chrome
- check developer mode and load extension folder
Install last release:
- download *.crx for last release here
- open chrome://extensions tab
- drag and drop crx file to tab