'recorder' tptp distibutive/pack? [message #111963] |
Fri, 07 September 2007 08:03  |
Eclipse User |
|
|
|
Hi!
Situation: software is running on remote computer that i can't access
over the net. This software is failing with errors which source i cannot
pinpoint based on produced logs.
Should there be network access, i would probably debug program remotely.
But alas, i cant. What i hope to do is to:
1. create some "execution flow recorder"/"black box" tptp pack so i can
configure it for recording locally (recorder package/class/method
filters, execution flow/memory/etc recording type and so on)
2. send it to guys running that program. They'll run that recorder,
press 2-3 buttons and tptp will record program execution for some time.
3. after that recorded results would be sent back to me
Of course I can get somewhat similar results by simply adding printlns
after every code line, but using tptp to analyze execution flow is MUCH
more easier and in the end will save me a lot of time.
So, are there any way to create such an eclipse pack that can to work as
a recorder that can be used by someone not familiar with eclipse or even
java?
Thanks in advance.
|
|
|
|
Re: 'recorder' tptp distibutive/pack? [message #112003 is a reply to message #111976] |
Fri, 07 September 2007 12:52  |
Eclipse User |
|
|
|
Alexander, thank you very much! It's exactly what I was looking for!
Alexander N. Alexeev wrote:
> Vadim, if I understand correctly you are trying to debug raw Java
> application. In this case you can use TPTP at stand-alone mode. This
> allows you to gather execution sequence information offline and later
> construct Call Graph or some other presentation, it depends from type of
> profiling and configuration.
> Required steps:
>
> 1. Download "Agent Controller" archive for target platform
> 2. Deploy it any appropriate place
> 3. Configure execution for profiled application
> - set environment variables
> TPTP_AC_HOME=<<Agent Controller Home>>
> JAVA_PROFILER_HOME=%TPTP_AC_HOME%\plugins\org.eclipse.tptp.j avaprofiler
> PATH=%JAVA_PROFILER_HOME%;%PATH%;%TPTP_AC_HOME%\bin:%JAVA_HO ME%\bin
> or LD_LIBRARY_PATH if you work with Linux
> - Configure filters to reduce runtime overhead, trace file size and to
> remove clutter. Filter configuration file is simple text with following
> format
> "package/class template" "method" INCLUDE/EXCLUDE Pay
> attention to order of templates, it affects which information will be
> collected. 4. Run target application on JVM with configured
> TPTP agent "java -cp <class path>
> -agentlib:JPIBootLoader=JPIAgent:server=standalone,filters=m yFilter.txt;CGProf:execdetails=true
> <application class>"
>
> By default information is collected in trace.trcxml, ant it can be changed.
>
> 5. After all collected data can be analyzed at Eclipse with TPTP.
>
> For more information see
> http://help.eclipse.org/help33/topic/org.eclipse.tptp.platfo rm.doc.user/tasks/teprofsa.htm
>
>
> Alex.
>
|
|
|
Powered by
FUDForum. Page generated in 0.19961 seconds