Skip to content

Commit

Permalink
Add example
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Sep 10, 2024
1 parent 2fa6760 commit bfa7a3d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,18 @@ The Tesla profiler is a simple EventSpy implementation that gathers timing infor
To profile your build you need to install the profiling extension your Maven/Tesla distribution. Find the [latest version in Maven Central][1] and install it in the `${M2_HOME}/lib/ext` directory,
or add it to `.mvn/extensions.xml`.

To active the profiling you need to enable the `profile` system property:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<extensions>
<extension>
<groupId>io.takari.maven</groupId>
<artifactId>maven-profiler</artifactId>
<version>1.0.0</version>
</extension>
</extensions>
```

To activate the profiling you need to enable the `maven.profile` system property:

```
mvn clean install -Dmaven.profile
Expand Down

0 comments on commit bfa7a3d

Please sign in to comment.