Java Profiler 报告 Hudson

发布于 2024-10-08 22:46:29 字数 159 浏览 1 评论 0原文

我已经有一个基于 Hudson 的持续集成服务器。 我已经有一个由 Hudson 测试和编译的应用程序(单元和功能测试)。 现在,我喜欢仅在测试执行期间了解一个构建到另一个构建的性能差距(并应用限制)的详细信息。

请问我可以用什么? (如果可能的话,开源解决方案)

问候,

I already have a continuous integration server based on Hudson.
I already have an application tested (unit and functional tests) and compiled by Hudson.
Now, I like to have details of the performance gaps (and to apply limits) to a build to another, during the execution of tests only.

What can I use please? (An open source solution if possible)

Regards,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

一抹微笑 2024-10-15 22:46:29

查看 java-source.net 上的 Java 中的开源分析器 页面。在您为自己确定了几个候选者后,请在 Hudson 中寻找一个插件。如果您的工具没有特定的插件,您可以使用 HTML Publisher 插件 发布 html 报告。此外,您可能需要诸如 测量图插件PerfPublisher 插件dbCharts 插件, 绘图插件,或HTML 发布器插件< /a>.花点时间浏览插件列表,您会找到以下问题的解决方案:你不知道你有,或者换句话说,它可能会帮助你为你试图解决的问题设计一个(更好的)替代方案。

Have a look at the Open Source Profilers in Java page on java-source.net. After you decided on a few candidates for you, look for a plugin in Hudson. If there is no specific plugin for your tool, you can use the HTML Publisher Plugin to publish html reports. In addition you might need plugins like Measurement Plots Plugin,PerfPublisher Plugin, dbCharts Plugin, Plot Plugin, or HTML Publisher Plugin. Take your time when going through the plugin list, you will find solutions for problems that you didn't know you had or in other words, it might help you to design an (better) alternative for the problem you are trying to solve.

小耗子 2024-10-15 22:46:29

我建议您使用声纳。 Sonar 为您的代码库提供了不同的指标。就像

* Respect of coding rules violations
* Density of documented API
* Density of duplicated Code
* Level of code coverage by Unit Tests
* Density of potential bugs
* Complexity distribution

我也建议您查看查找错误

Sonar 和 Find Bugs 将是一个很好的起点。如果您专门关注性能。这是我找到的插件。(我没有使用过)我们使用性能测试仪来完成此类工作,因此从未想过将其合并到构建中。尽管我们在开发人员桌面上进行性能测试。

I would suggest you to use sonar. Sonar gives you different metrics on your code base. Like

* Respect of coding rules violations
* Density of documented API
* Density of duplicated Code
* Level of code coverage by Unit Tests
* Density of potential bugs
* Complexity distribution

I would also suggest you to look at Find Bugs.

Sonar and Find Bugs will be a good place to start. If you are looking specifically at performance. Here is a plugin that I found .( I have not used it) We use performance testers for this kind of work, so never thought of incorporating it into the build. Though we do performance testing on developers desktops.

﹏雨一样淡蓝的深情 2024-10-15 22:46:29

我建议使用 JMH(http://openjdk.java.net/projects/code- tools/jmh/) + 分析器 (spf4j(http://www.spf4j.org) ,飞行记录器)

有关如何执行此操作的示例可以在以下位置找到: http://zolyfarkas.github.io/spf4j/xref-test/org/spf4j/JmhTest.html

如果您将 jenkins 与 jmh 插件一起使用:https://github.com/blackboard/jmh-jenkins 您可以跟踪您的性能,并且您始终可以查看分析器数据进行调查。

如果您想让配置文件可访问,您可以在项目站点中发布它们,如下所示: http://zolyfarkas.github.io/spf4j/spf4j-benchmarks/index.html

I would recommend using JMH(http://openjdk.java.net/projects/code-tools/jmh/) + a profiler (spf4j(http://www.spf4j.org), flight recorder)

a example on how you can do that you can find at : http://zolyfarkas.github.io/spf4j/xref-test/org/spf4j/JmhTest.html

If you use jenkins with the jmh plugin: https://github.com/blackboard/jmh-jenkins you can trend your performance, and you will always be able to look at the profiler data to investigate.

you can publish the profile files in the project site if you want to have them accessible like at: http://zolyfarkas.github.io/spf4j/spf4j-benchmarks/index.html

骷髅 2024-10-15 22:46:29

看看这个性能插件。这将根据您的 junit 和 jmeter 测试生成性能报告。 这是文章 了解如何设置。

Look at this Performance Plugin. This will generate perf reports based on your junit and jmeter tests. Here is the article on how to set this up.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文