https://github.com/hakdogan/simpleprofiler
About using custom annotations and processing them.
https://github.com/hakdogan/simpleprofiler
Last synced: 4 months ago
JSON representation
About using custom annotations and processing them.
- Host: GitHub
- URL: https://github.com/hakdogan/simpleprofiler
- Owner: hakdogan
- Created: 2019-12-18T09:14:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-01-03T19:24:33.000Z (over 1 year ago)
- Last Synced: 2025-04-04T13:53:19.107Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SIMPLE PROFILER
[](https://travis-ci.org/hakdogan/simpleprofiler)
[](https://sonarcloud.io/dashboard?id=com.kodcu%3Asimple-profiler)
[](https://sonarcloud.io/dashboard?id=com.kodcu%3Asimple-profiler)
This application demonstrates how to use custom annotations and processing them in around a simple profiling example.
## How to Use
For short information
```java
@Monitor(MonitorPolicy.SHORT)
private static void getUserInfo(){
// //Make HTTP request...
}
```
Result of
```
Total execution time of getShortUserInfo method is 326 ms
```
For detailed information
```java
@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
```