为什么VisualVM Profiler中不显示所有方法? [英] Why aren't all methods displayed in VisualVM profiler?
问题描述
我正在使用 VisualVM
来查看我的应用程序运行缓慢的位置。但它没有显示所有方法,可能没有显示延迟应用程序的所有方法。
I am using VisualVM
to see where my application is slow. But it does not show all methods, probably does not show all methods that delays the application.
我有一个实时应用程序(声音处理),并且时间不足几百微秒。
I have a realtime application (sound processing) and have a time deficiency in few hundreds of microseconds.
是否有可能 VisualVM
隐藏自己快速的方法?
Is it possible that VisualVM
hides methods which are fast themselves?
UPDATE 1
我发现采样器和猜测的方法很慢。这是从调试日志中调用的 toString()
方法,该方法已关闭,但耗费时间。
I found slow method by sampler and guessing. It was toString()
method which was called from debug logging which was turned off, but consuming a time.
设置
帮助,现在我知道怎么看:它取决于开始来自
选项的分析。
Settings
helped and now I know how to see it: it was depending on Start profiling from
option.
推荐答案
我现在面前没有它,但在开始分析之前,默认情况下会隐藏一个设置窗格,您可以输入正则表达式来过滤掉方法。默认情况下,它会过滤掉许多核心JDK内容。
I don't have it in front of my at the moment, but before you start profiling, there's a settings pane that's hidden by default and lets you enter regexes for filtering out methods. By default, it filters out a lot of the core JDK stuff.
这篇关于为什么VisualVM Profiler中不显示所有方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!