It logs into browser console information about function execution which is listed below
npm install --save-dev ngx-spy
Simply import the function into your component and decorate the target function with it. Like so:
```
import {Spy} from 'ngx-spy';
@Component({
...
})
class Example{
@Spy()
yourMethodHere(){
...do something here
}
}
```
This decorator is available only in development mode. If you forget to remove it for production it will just execute the function and throw an error message without logging any information about execution.
- Arguments with which function was called
- Number of function calls
- Current execution time in milliseconds
- Average execution time in milliseconds
- Difference between current and previous execution time in milliseconds