Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/takari/maven-profiler
Simple profiler for your Maven builds.
https://github.com/takari/maven-profiler
maven maven-extension profiler
Last synced: 5 days ago
JSON representation
Simple profiler for your Maven builds.
- Host: GitHub
- URL: https://github.com/takari/maven-profiler
- Owner: takari
- Created: 2011-08-07T23:10:31.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2024-09-10T11:53:35.000Z (2 months ago)
- Last Synced: 2024-09-10T12:50:16.510Z (2 months ago)
- Topics: maven, maven-extension, profiler
- Language: Java
- Homepage:
- Size: 130 KB
- Stars: 90
- Watchers: 28
- Forks: 29
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Maven profiler
[![Maven Central](https://img.shields.io/maven-central/v/io.takari.maven/maven-profiler.svg?label=Maven%20Central)](https://search.maven.org/artifact/io.takari.maven/maven-profiler)
[![Verify](https://github.com/takari/maven-profiler/actions/workflows/ci.yml/badge.svg)](https://github.com/takari/maven-profiler/actions/workflows/ci.yml)
[![Reproducible Builds](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/jvm-repo-rebuild/reproducible-central/master/content/io/takari/maven/maven-profiler/badge.json)](https://github.com/jvm-repo-rebuild/reproducible-central/blob/master/content/io/takari/maven/maven-profiler/README.md)The Tesla profiler is a simple EventSpy implementation that gathers timing information. It collects the time it takes to execute each mojo and gathers them within the phase they run. This was originally written to find a particular hotspot and it not formatted particularly well and definitely needs improvement.
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`.```xml
io.takari.maven
maven-profiler
1.0.0
```
To activate the profiling you need to enable the `maven.profile` system property:
```
mvn clean install -Dmaven.profile
```Here's an example of what the output will look like:
```
org.apache.maven:maven-core:3.1.2-SNAPSHOTclean 176ms
org.apache.maven.plugins:maven-clean-plugin:2.5 (default-clean) 176msinitialize 408ms
org.codehaus.mojo:buildnumber-maven-plugin:1.2 (create-noncanonicalrev) 349ms
org.codehaus.mojo:buildnumber-maven-plugin:1.2 (create-buildnumber) 59msgenerate-sources 408ms
org.codehaus.modello:modello-maven-plugin:1.8.1 (standard) 369ms
org.codehaus.modello:modello-maven-plugin:1.8.1 (standard) 28ms
org.codehaus.modello:modello-maven-plugin:1.8.1 (standard) 11msgenerate-resources 933ms
org.apache.maven.plugins:maven-remote-resources-plugin:1.4 (default) 932msprocess-resources 225ms
org.apache.maven.plugins:maven-resources-plugin:2.6 (default-resources) 224mscompile 4s 522ms
org.apache.maven.plugins:maven-compiler-plugin:2.5.1 (default-compile) 4s 522msprocess-classes 6s 880ms
org.codehaus.mojo:animal-sniffer-maven-plugin:1.6 (check-java-1.5-compat) 5s 814ms
org.codehaus.plexus:plexus-component-metadata:1.5.5 (default) 946ms
org.sonatype.plugins:sisu-maven-plugin:1.1 (default) 120msprocess-test-resources 173ms
org.apache.maven.plugins:maven-resources-plugin:2.6 (default-testResources) 173mstest-compile 818ms
org.apache.maven.plugins:maven-compiler-plugin:2.5.1 (default-testCompile) 818msprocess-test-classes 134ms
org.codehaus.plexus:plexus-component-metadata:1.5.5 (default) 110ms
org.sonatype.plugins:sisu-maven-plugin:1.1 (default) 23mstest 11s 306ms
org.apache.maven.plugins:maven-surefire-plugin:2.12 (default-test) 11s 306mspackage 1s 371ms
org.apache.maven.plugins:maven-jar-plugin:2.4 (default-jar) 502ms
org.apache.maven.plugins:maven-site-plugin:3.3 (attach-descriptor) 869ms```
[1]: http://repo.maven.apache.org/maven2/io/tesla/profile/tesla-profiler/