[英]How to make graph from perf4j log file?
I have used perf4j to calculate the performance of the process.我已经使用 perf4j 来计算进程的性能。 Now I want to make the graph for that file.
现在我想为该文件制作图表。 Is it possible to make it without using Google API or any other method that can be used?
是否可以不使用 Google API 或任何其他可以使用的方法来制作它?
You have a couple of options:你有几个选择:
Can you explain a bit more as to why you want to avoid Google Charting APIs (I ask since I am intrigued as to why someone would not want to do something that is very simple, elegant and FREE)?您能否解释一下为什么要避免使用 Google Charting API(我之所以这么问,是因为我很好奇为什么有人不想做一些非常简单、优雅和免费的事情)?
Also there is a GraphingServlet section "Exposing Performance Graphs in a Web Application" which I think internally does the same thing.还有一个GraphingServlet部分“在 Web 应用程序中公开性能图”,我认为它在内部做了同样的事情。
If you still want you can take the graph data (in raw csv format) and write some helper classes to create charts using libraries like jfreechart (rich client)如果您仍然需要,您可以获取图形数据(以原始 csv 格式)并编写一些帮助类来使用 jfreechart(富客户端)等库创建图表
follow the following steps;请按照以下步骤操作;
java -jar perf4j-0.9.16.jar --graph perfGraphs.html perfLogFile.log java -jar perf4j-0.9.16.jar --graph perfGraphs.html perfLogFile.log
this will generate perfGraphs.html file in this location, which consists of graphs.这将在此位置生成 perfGraphs.html 文件,该文件由图形组成。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.