jvisualvm - How to provide an icon and another name than the invoking class for my program?

穿精又带淫゛_ 提交于 2019-12-06 14:03:51

问题


I have an application where I want to be able to provide my own icon and descriptive text for jvisualvm. (I do not want to configure jvisualvm, just provide better metadata from my application)

The best would be at runtime since we have distinct behaviour determined at runtime, which would be nice to have reflected in the label/icon. Makes it easier to 1) locate ourselves, but also 2) for endusers to locate in a support situation.

I did search for this earlier, but did not locate this easily. Is it buried in the JMX-stuff?

Suggestions? I have full control over the application in question.


回答1:


You need to create a new ApplicationType. Have a look here for how to do it

http://blogs.oracle.com/geertjan/entry/getting_started_extending_visualvm_part



来源:https://stackoverflow.com/questions/1334907/jvisualvm-how-to-provide-an-icon-and-another-name-than-the-invoking-class-for

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!