jvisualvm - 如何提供一个图标和另一个名称,而不是我的程序的调用类? [英] jvisualvm - How to provide an icon and another name than the invoking class for my program?

查看:199
本文介绍了jvisualvm - 如何提供一个图标和另一个名称,而不是我的程序的调用类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,我希望能够为jvisualvm提供自己的图标和描述性文本。 (我不想配置jvisualvm,只是从我的应用程序提供更好的元数据)

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)

最好的是在运行时,因为我们在运行时确定了不同的行为,这将是很高兴反映在标签/图标中。使1)定位自己更容易,但也2)让最终用户找到支持情况。

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.

我之前搜索过这个,但没有找到这个。它被埋在JMX中吗?

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.

推荐答案

您需要创建一个新的ApplicationType。看看这里怎么做

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

这篇关于jvisualvm - 如何提供一个图标和另一个名称,而不是我的程序的调用类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆