Advices
Version 1.x
For programmer’s convenience dcl
provides following general advices:
- counter - counts how many times a certain method was called and how many times it failed (had thrown an exception)
- flow - classic AOP flow helper, which keeps track if we were called in a process of executing of a certain method, and how many times it was recursed
- memoize - another classic AOP helper, which provides simple generic cache for read-only methods
- time - timer, which uses
console
timing interface to measure an execution time of a method - trace - tracer, which logs
console
beginning and ending of a method including its arguments, and a return value