Re: Enhance PerfLogger with annotations using AOP

2024-02-05 Thread Stamatis Zampetakis
Hey Soumyakanti, Thanks for starting this discussion. I like the idea of reducing boilerplate code and one way although not the only one is using AOP. AOP libraries rely on code injection and there are various pros/cons [1] when using such tools. If AspectJ is the best option for this use-case I

Enhance PerfLogger with annotations using AOP

2024-02-04 Thread Soumyakanti Das
Hi all, Do you guys think it's a good idea to implement annotations for PerfLogger? Currently, we have to surround the code with a PerfLogBegin and a PerfLogEnd to log execution time. There are many methods where the first and last line are these. Instead, we could use AOP to create an annotation