hakdogan / simpleprofiler

About using custom annotations and processing them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SIMPLE PROFILER

Build Status Quality Gate Status Coverage

This application demonstrates how to use custom annotations and processing them in around a simple profiling example.

How to Use

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

About

About using custom annotations and processing them.


Languages

Language:Java 100.0%