1
我真正想知道的是,如何使用Wily Introscope執行基於Java的應用程序的方法級別跟蹤?我想跟蹤所有目前在我的應用程序中。請幫忙。使用Wily Introscope進行基於Java的應用程序的方法級跟蹤
我真正想知道的是,如何使用Wily Introscope執行基於Java的應用程序的方法級別跟蹤?我想跟蹤所有目前在我的應用程序中。請幫忙。使用Wily Introscope進行基於Java的應用程序的方法級跟蹤
您需要:在您的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"
你可以嘗試https://github.com/alfredxiao/jackplay,這正是創建做方法級別跟蹤沒有代碼更改或重新部署。 –