aspose file tools*
The moose likes JSF and the fly likes AOP with JSf to profiling methods in application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "AOP with JSf to profiling methods in application" Watch "AOP with JSf to profiling methods in application" New topic
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: 16240
    
  21

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AOP with JSf to profiling methods in application