| Author |
AOP with JSf to profiling methods in application
|
sridhar kosna
Greenhorn
Joined: Apr 05, 2011
Posts: 3
|
|
HI All,
My requirement is to calculate the each and every method execution time in application. and it should be generic. could anybody please suggest on this topic.
|
 |
Shasi Mitra
Ranch Hand
Joined: Nov 27, 2008
Posts: 101
|
|
|
Go with AroundAdvice if you are using SpringAOP..Otherwise you have to create proxy class for all your classes and do method interposition using Java reflections.
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14486
|
|
For practical purposes, however, a good code profiler would be a lot better. And it wouldn't require source code mods or AOP.
When optimizing applications, it's not as important to know how long each method takes to execute as how long the code as a whole takes to execute for the given task and what parts of the code are offending.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
 |
|
|
subject: AOP with JSf to profiling methods in application
|
|
|