Java Profiling in Continuous Integration

2020-07-11 06:30发布

问题:

Are there any Java profiling tools that integrate with CI servers like Jenkins?

I've no idea if such things exist, but what would be splendid would be some kind of test framework that yielded results like YourKit Profiler's snapshots. These would be invoked by the CI server, and the results stored along with the build. The result being that one could see a history of performance changes in code units, to aid more holistic performance investigations at a system integration level.

回答1:

Take a look at spf4j, I use it for continuous profiling (profiling always turned on).

It uses sampling for profiling and it can save the profile data to ssdump files, or it can generate html reports. (Spf4j has a UI to visualize the ssdump profile files)