• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

takari/maven-profiler

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

takari/maven-profiler

开源软件地址(OpenSource Url):

https://github.com/takari/maven-profiler

开源编程语言(OpenSource Language):

Java 100.0%

开源软件介绍(OpenSource Introduction):

Maven profiler

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 and install it in the ${M2_HOME}/lib/ext directory.

To active the profiling you need to enable the 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-SNAPSHOT

  clean 176ms
    org.apache.maven.plugins:maven-clean-plugin:2.5 (default-clean) 176ms

  initialize 408ms
    org.codehaus.mojo:buildnumber-maven-plugin:1.2 (create-noncanonicalrev) 349ms
    org.codehaus.mojo:buildnumber-maven-plugin:1.2 (create-buildnumber) 59ms

  generate-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) 11ms

  generate-resources 933ms
    org.apache.maven.plugins:maven-remote-resources-plugin:1.4 (default) 932ms

  process-resources 225ms
    org.apache.maven.plugins:maven-resources-plugin:2.6 (default-resources) 224ms

  compile 4s 522ms
    org.apache.maven.plugins:maven-compiler-plugin:2.5.1 (default-compile) 4s 522ms

  process-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) 120ms

  process-test-resources 173ms
    org.apache.maven.plugins:maven-resources-plugin:2.6 (default-testResources) 173ms

  test-compile 818ms
    org.apache.maven.plugins:maven-compiler-plugin:2.5.1 (default-testCompile) 818ms

  process-test-classes 134ms
    org.codehaus.plexus:plexus-component-metadata:1.5.5 (default) 110ms
    org.sonatype.plugins:sisu-maven-plugin:1.1 (default) 23ms

  test 11s 306ms
    org.apache.maven.plugins:maven-surefire-plugin:2.12 (default-test) 11s 306ms

  package 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




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap