使用Wily Introscope对基于Java的应用程序进行方法级跟踪

时间:2015-09-25 09:35:51

标签: java performance introscope

我真正想知道的是我们如何使用Wily Introscope对基于Java的应用程序进行方法级别跟踪?我想跟踪应用程序中存在的所有类的所有方法。请帮忙。

1 个答案:

答案 0 :(得分:1)

你需要:

IntroscopeAgent.properties文件中的

introscope.autoprobe.enable=true。然后,您需要为要监视的类构建.pbd文件。它看起来像是:

#Custom Instrumentation for YouApplication
SetTracerClassMapping: ProxyBlamePointTracer com.wily.introscope.agent.trace.hc2.BlamePointTracer com.wily.introscope.probebuilder.validate.ResourceNameValidator
SetTracerParameter: ProxyBlamePointTracer nameformatter com.wily.field.ParameterSubstringFormatter
SetTracerParameter: ProxyBlamePointTracer newmode true
SetTracerParameter: ProxyBlamePointTracer useblame true

SetTracerClassMapping: ProxyExceptionErrorReporter com.wily.introscope.agent.trace.hc2.MethodThrewErrorReportingTracer com.wily.introscope.probebuilder.validate.MetricNameValidator
SetTracerParameter: ProxyExceptionErrorReporter nameformatter com.wily.field.ParameterSubstringFormatter


SetFlag: YourAppTracing
TurnOn: YourAppTracing
IdentifyClassAs: abc.de.efg.hijk.lmnop YourAppTracing
IdentifyInheritedAs: abc.de.efg.hijk.lmnop YourAppTracing
TraceComplexMethodsIfFlagged: YourAppTracing ProxyBlamePointTracer "YourApp|SUB|{classname}|{method}"
TraceComplexMethodsIfFlagged: YourAppTracing ProxyExceptionErrorReporter "YourApp|SUB|{classname}|{method}:Errors Per Interval"
相关问题