com.github.ak98neon:spring-boot-profiler-starter

There is a project for manage time of method executions in spring boot applications, under Apache 2.0

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

com.github.ak98neon
ArtifactId

ArtifactId

spring-boot-profiler-starter
Last Version

Last Version

1.0.6
Release Date

Release Date

Type

Type

jar
Description

Description

There is a project for manage time of method executions in spring boot applications, under Apache 2.0
Project URL

Project URL

https://github.com/ak98neon/spring-boot-profiler-starter
Source Code Management

Source Code Management

https://github.com/ak98neon/spring-boot-profiler-starter

Download spring-boot-profiler-starter

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.ak98neon/spring-boot-profiler-starter/ -->
<dependency>
    <groupId>com.github.ak98neon</groupId>
    <artifactId>spring-boot-profiler-starter</artifactId>
    <version>1.0.6</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.ak98neon/spring-boot-profiler-starter/
implementation 'com.github.ak98neon:spring-boot-profiler-starter:1.0.6'
// https://jarcasting.com/artifacts/com.github.ak98neon/spring-boot-profiler-starter/
implementation ("com.github.ak98neon:spring-boot-profiler-starter:1.0.6")
'com.github.ak98neon:spring-boot-profiler-starter:jar:1.0.6'
<dependency org="com.github.ak98neon" name="spring-boot-profiler-starter" rev="1.0.6">
  <artifact name="spring-boot-profiler-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.ak98neon', module='spring-boot-profiler-starter', version='1.0.6')
)
libraryDependencies += "com.github.ak98neon" % "spring-boot-profiler-starter" % "1.0.6"
[com.github.ak98neon/spring-boot-profiler-starter "1.0.6"]

Dependencies

compile (8)

Group / Artifact Type Version
org.reflections : reflections jar 0.9.12
org.springframework : spring-context-support jar
org.springframework.boot : spring-boot-starter jar 2.1.7.RELEASE
org.springframework.boot : spring-boot-starter-test jar 2.1.7.RELEASE
org.apache.logging.log4j : log4j-api jar 2.13.3
org.apache.logging.log4j : log4j-core jar 2.13.3
org.apache.maven.plugins : maven-gpg-plugin jar 1.6
org.apache.maven.plugins : maven-javadoc-plugin jar 3.2.0

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.18.10

Project Modules

There are no modules declared in this project.

Spring Profiler Starter

Codacy Badge Build Status Coverage Status BCH compliance

Usage

Maven
<dependency>
    <groupId>com.github.ak98neon</groupId>
    <artifactId>spring-boot-profiler-starter</artifactId>
    <version>1.0.1</version>
</dependency>

Annotations

@EnableProfiling
@Profiling
@PostProxy

How to enable profiler

To enable profiling you need to add @EnableProfiling annotation to your main class

@SpringBootApplication
@EnableProfiling
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}

How to profile your class or method

You can add @Profiling annotation to your class bean, or you can add it to method, also you can use @PostProxy annotation for run your test method without any execution actions, method that annotated @PostProxy will be execute after context initialize

@Component
@Profiling
public class DemoBean {

    @PostProxy
    public void testMethod() {
        System.out.println("lalalal");
    }

    @Profiling
    public void sayQuote() {
        System.out.println("lalalal");
    }
}

Versions

Version
1.0.6
1.0.5
1.0.1