简体   繁体   English

如何为我的Java程序生成运行时间图

[英]How to generate running time graph for my Java program

Hi I want to generate running time graphs on my java program. 您好我想生成我的java程序运行时间图。 Is there any program which makes it? 是否有任何程序可以实现?

So, if the X-axis is time, what do want on the Y-axis? 那么,如果X轴是时间,那么在Y轴上想要什么?

If its memory, then you could use something jconsole or jvisualvm 如果有内存,那么您可以使用jconsole或jvisualvm

When you mean the time each method needs/total runtime then look for a profiler (eg eclipse plugin TPTP). 当您指的是每种方法所需的时间/总运行时间时,请查找分析器(例如eclipse插件TPTP)。 Or do you mean to display graphs of runtimes in your program itself? 还是要在程序本身中显示运行时图? (The preposition "on" you use make it hard to understand for me, "in" or "for" would in my eyes clarify the thing. (您使用的介词“在...上”使我很难理解,“在...中”或“用于”在我眼中可以使事情变得清晰。

看一下jfreechart库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM