This application demonstrates how to use custom annotations and processing them in around a simple profiling example.
For short information
@Monitor(MonitorPolicy.SHORT)
private static void getUserInfo(){
// //Make HTTP request...
}
Result of
Total execution time of getShortUserInfo method is 326 ms
For detailed information
@Monitor(MonitorPolicy.DETAILED)
private static void getUserInfo(){
// //Make HTTP request...
}
Result of
The getDetailUserInfo method start time is 2019-12-29 15:43:21 end time is 2019-12-29 15:43:22 , total execution time as milliseconds is 351