1

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

4

1 回答 1

1

你需要:

introscope.autoprobe.enable=true在您的 IntroscopeAgent.properties 文件中。然后,您需要为要监视的类构建一个 .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"
于 2015-11-06T16:36:34.823 回答