Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Getting full XML trace from Eclipse plugged-in TPTP
Getting full XML trace from Eclipse plugged-in TPTP [message #140731] Wed, 25 February 2009 15:05 Go to next message
Benedikt Burgstaller is currently offline Benedikt BurgstallerFriend
Messages: 5
Registered: July 2009
Junior Member
Hi Everybody,

i've been using the standalone TPTP Agent Controller (with
server=standalone), receiving an xml log trace i'm using for trace
analysis. I then tried to obtain this trace from the TPTP plugin
integrated in Eclipse but could not find an option todo so unless I use
the VM argument server=standalone but then I can't control it from
Eclipse. All the traces one can export from the different views of TPTP
in Eclipse do not provide this trace.
Is it possible to somehow obtain this trace from the TPTP plugin in
Eclipse + use the pause and unpause buttons to control the profiler?

My configuration:
Eclipse 3.4.1
TPTP Log and Trace Analyzer 4.5.0
TPTP Monitoring Tools Project 4.4.100
TPTPT Platform Project 4.5.1
TPTP Test Framework and Tools 4.3.300
TPTP Tracing and Profiling Tools Project 4.3.200


The trace I mentioned looks like this:
<?xml version="1.0"?>
<TRACE>
<node nodeId="" hostname="localhost" ipaddress="127.0.0.1" timezone="-
60" time="1235550003.963170200"/>
<processCreate processId="e97c3855-88ef-4952-a3af-21517132d8bf"
pid="5336" nodeIdRef="" time="1235550003.963170200"/>
<agentCreate agentId="e4d8eece-f7f6-4c8e-bcf4-d1e4d11fb906"
version="2.000" processIdRef="e97c3855-88ef-4952-a3af-21517132d8bf"
agentName="org.eclipse.tptp.jvmti" agentType="Profiler"
agentParameters="server=standalone,file=log.trcxml,filters=filter.txt "
time="1235550004.119000000"/>
<traceStart traceId="94306197-a937-4dae-8684-e36643ccdfa8"
agentIdRef="e4d8eece-f7f6-4c8e-bcf4-d1e4d11fb906"
time="1235550004.132489842"/>
<filter pattern="com.sun" mode="EXCLUDE" genericPattern="SUFFIX"
methodPattern="" methodMode="EXCLUDE" methodGenericPattern="PREFIX"/>
....
<threadStart threadId="3" time="1235550005.205586982" threadName="Signal
Dispatcher" groupName="system" parentName=""/>
<threadStart threadId="4" time="1235550005.205662411" threadName="Attach
Listener" groupName="system" parentName=""/>
<threadStart threadId="1" time="1235550005.226901213"
threadName="Reference Handler" groupName="system" parentName=""/>
<threadStart threadId="2" time="1235550005.226936623"
threadName="Finalizer" groupName="system" parentName=""/>
<runtimeInitDone threadIdRef="5" time="1235550005.227861042"/>
<threadStart threadId="6" time="1235550005.228031105"
threadName="Thread-0" groupName="main" parentName="system"/>
<threadStart threadId="5" time="1235550005.228412299" threadName="main"
groupName="main" parentName="system"/>
<classDef name="MPEGDecoder/VODClient" sourceName="VODClient.java"
classId="309" time="1235550005.993150764"/>
<methodDef name="main" signature="([Ljava/lang/String;)V"
startLineNumber="268" endLineNumber="276" methodId="70112"
classIdRef="309"/>
<methodEntry threadIdRef="5" time="1235550005.993218091"
methodIdRef="70112" classIdRef="309" ticket="0" stackDepth="1"/>
<methodDef name="-init-" signature="()V" startLineNumber="28"
endLineNumber="83" methodId="70102" classIdRef="309"/>
<methodEntry threadIdRef="5" time="1235550005.993299666"
methodIdRef="70102" classIdRef="309" ticket="1" stackDepth="2"/>
<threadStart threadId="7" time="1235550006.968497003" threadName="Java2D
Disposer" groupName="system" parentName=""/>
<threadStart threadId="8" time="1235550007.150798594" threadName="AWT-
Shutdown" groupName="main" parentName="system"/>
<threadStart threadId="9" time="1235550007.151144727" threadName="AWT-
Windows" groupName="main" parentName="system"/>
<methodDef name="class$" signature="(Ljava/lang/String;)
Ljava/lang/Class;" startLineNumber="0" endLineNumber="0"
methodId="70113" classIdRef="309"/>
<methodEntry threadIdRef="5" time="1235550007.665090983"
methodIdRef="70113" classIdRef="309" ticket="2" stackDepth="3"/>
<classDef name="MPEGDecoder/BitInputStream"
sourceName="BitInputStream.java" classId="683"
time="1235550007.674159245"/>
<methodDef name="-clinit-" signature="()V" startLineNumber="11"
endLineNumber="24" methodId="75174" classIdRef="683"/>
<methodEntry threadIdRef="5" time="1235550007.674192838"
methodIdRef="75174" classIdRef="683" ticket="3" stackDepth="4"/>
<methodExit threadIdRef="5" methodIdRef="75174" classIdRef="683"
ticket="3" time="1235550007.674222241"/>
<methodExit threadIdRef="5" methodIdRef="70113" classIdRef="309"
ticket="2" time="1235550007.674240260"/>
....
<threadEnd threadIdRef="7" time="1235550055.030468287"/>
<threadEnd threadIdRef="10" time="1235550055.030477995"/>
<threadEnd threadIdRef="12" time="1235550055.030487353"/>
<runtimeShutdown time="1235550055.030498877"/>
<traceEnd time="1235550055.030506560"/>
<agentDestroy agentIdRef="e4d8eece-f7f6-4c8e-bcf4-d1e4d11fb906"
time="1235550055.030515080"/>
</TRACE>


Regards,
Benedikt
Re: Getting full XML trace from Eclipse plugged-in TPTP [message #140742 is a reply to message #140731] Wed, 25 February 2009 17:57 Go to previous messageGo to next message
Eugene Chan is currently offline Eugene ChanFriend
Messages: 287
Registered: July 2009
Senior Member
Hi Benedikt,

You can use the profile to file option to have the profiling data sent to a
file on your file system. This can be done by enabling the 'Send profiling
data to a file' Option under the Destination tab of a profile launch
configuration

Eugene

"Benedikt Burgstaller" <bb@sea.uni-linz.ac.at> wrote in message
news:MPG.240f7ca535a05cb989680@news.eclipse.org...
> Hi Everybody,
>
> i've been using the standalone TPTP Agent Controller (with
> server=standalone), receiving an xml log trace i'm using for trace
> analysis. I then tried to obtain this trace from the TPTP plugin
> integrated in Eclipse but could not find an option todo so unless I use
> the VM argument server=standalone but then I can't control it from
> Eclipse. All the traces one can export from the different views of TPTP
> in Eclipse do not provide this trace.
> Is it possible to somehow obtain this trace from the TPTP plugin in
> Eclipse + use the pause and unpause buttons to control the profiler?
>
> My configuration:
> Eclipse 3.4.1
> TPTP Log and Trace Analyzer 4.5.0
> TPTP Monitoring Tools Project 4.4.100
> TPTPT Platform Project 4.5.1
> TPTP Test Framework and Tools 4.3.300
> TPTP Tracing and Profiling Tools Project 4.3.200
>
>
> The trace I mentioned looks like this:
> <?xml version="1.0"?>
> <TRACE>
> <node nodeId="" hostname="localhost" ipaddress="127.0.0.1" timezone="-
> 60" time="1235550003.963170200"/>
> <processCreate processId="e97c3855-88ef-4952-a3af-21517132d8bf"
> pid="5336" nodeIdRef="" time="1235550003.963170200"/>
> <agentCreate agentId="e4d8eece-f7f6-4c8e-bcf4-d1e4d11fb906"
> version="2.000" processIdRef="e97c3855-88ef-4952-a3af-21517132d8bf"
> agentName="org.eclipse.tptp.jvmti" agentType="Profiler"
> agentParameters="server=standalone,file=log.trcxml,filters=filter.txt "
> time="1235550004.119000000"/>
> <traceStart traceId="94306197-a937-4dae-8684-e36643ccdfa8"
> agentIdRef="e4d8eece-f7f6-4c8e-bcf4-d1e4d11fb906"
> time="1235550004.132489842"/>
> <filter pattern="com.sun" mode="EXCLUDE" genericPattern="SUFFIX"
> methodPattern="" methodMode="EXCLUDE" methodGenericPattern="PREFIX"/>
> ...
> <threadStart threadId="3" time="1235550005.205586982" threadName="Signal
> Dispatcher" groupName="system" parentName=""/>
> <threadStart threadId="4" time="1235550005.205662411" threadName="Attach
> Listener" groupName="system" parentName=""/>
> <threadStart threadId="1" time="1235550005.226901213"
> threadName="Reference Handler" groupName="system" parentName=""/>
> <threadStart threadId="2" time="1235550005.226936623"
> threadName="Finalizer" groupName="system" parentName=""/>
> <runtimeInitDone threadIdRef="5" time="1235550005.227861042"/>
> <threadStart threadId="6" time="1235550005.228031105"
> threadName="Thread-0" groupName="main" parentName="system"/>
> <threadStart threadId="5" time="1235550005.228412299" threadName="main"
> groupName="main" parentName="system"/>
> <classDef name="MPEGDecoder/VODClient" sourceName="VODClient.java"
> classId="309" time="1235550005.993150764"/>
> <methodDef name="main" signature="([Ljava/lang/String;)V"
> startLineNumber="268" endLineNumber="276" methodId="70112"
> classIdRef="309"/>
> <methodEntry threadIdRef="5" time="1235550005.993218091"
> methodIdRef="70112" classIdRef="309" ticket="0" stackDepth="1"/>
> <methodDef name="-init-" signature="()V" startLineNumber="28"
> endLineNumber="83" methodId="70102" classIdRef="309"/>
> <methodEntry threadIdRef="5" time="1235550005.993299666"
> methodIdRef="70102" classIdRef="309" ticket="1" stackDepth="2"/>
> <threadStart threadId="7" time="1235550006.968497003" threadName="Java2D
> Disposer" groupName="system" parentName=""/>
> <threadStart threadId="8" time="1235550007.150798594" threadName="AWT-
> Shutdown" groupName="main" parentName="system"/>
> <threadStart threadId="9" time="1235550007.151144727" threadName="AWT-
> Windows" groupName="main" parentName="system"/>
> <methodDef name="class$" signature="(Ljava/lang/String;)
> Ljava/lang/Class;" startLineNumber="0" endLineNumber="0"
> methodId="70113" classIdRef="309"/>
> <methodEntry threadIdRef="5" time="1235550007.665090983"
> methodIdRef="70113" classIdRef="309" ticket="2" stackDepth="3"/>
> <classDef name="MPEGDecoder/BitInputStream"
> sourceName="BitInputStream.java" classId="683"
> time="1235550007.674159245"/>
> <methodDef name="-clinit-" signature="()V" startLineNumber="11"
> endLineNumber="24" methodId="75174" classIdRef="683"/>
> <methodEntry threadIdRef="5" time="1235550007.674192838"
> methodIdRef="75174" classIdRef="683" ticket="3" stackDepth="4"/>
> <methodExit threadIdRef="5" methodIdRef="75174" classIdRef="683"
> ticket="3" time="1235550007.674222241"/>
> <methodExit threadIdRef="5" methodIdRef="70113" classIdRef="309"
> ticket="2" time="1235550007.674240260"/>
> ...
> <threadEnd threadIdRef="7" time="1235550055.030468287"/>
> <threadEnd threadIdRef="10" time="1235550055.030477995"/>
> <threadEnd threadIdRef="12" time="1235550055.030487353"/>
> <runtimeShutdown time="1235550055.030498877"/>
> <traceEnd time="1235550055.030506560"/>
> <agentDestroy agentIdRef="e4d8eece-f7f6-4c8e-bcf4-d1e4d11fb906"
> time="1235550055.030515080"/>
> </TRACE>
>
>
> Regards,
> Benedikt
>
Re: Getting full XML trace from Eclipse plugged-in TPTP [message #140782 is a reply to message #140742] Thu, 26 February 2009 07:22 Go to previous messageGo to next message
Benedikt Burgstaller is currently offline Benedikt BurgstallerFriend
Messages: 5
Registered: July 2009
Junior Member
Hi Eugene,

thanks for your quick answer. I already tried this option. The data that
is wrote into the file seems to be binary, not xml. Is there an option
to change the output format?

Regards,
Benedikt

In article <go40un$gg2$1@build.eclipse.org>, ewchan@ca.ibm.com says...
>
> Hi Benedikt,
>
> You can use the profile to file option to have the profiling data sent to a
> file on your file system. This can be done by enabling the 'Send profiling
> data to a file' Option under the Destination tab of a profile launch
> configuration
>
> Eugene
>
> "Benedikt Burgstaller" <bb@sea.uni-linz.ac.at> wrote in message
> news:MPG.240f7ca535a05cb989680@news.eclipse.org...
> > Hi Everybody,
> >
> > i've been using the standalone TPTP Agent Controller (with
> > server=standalone), receiving an xml log trace i'm using for trace
> > analysis. I then tried to obtain this trace from the TPTP plugin
> > integrated in Eclipse but could not find an option todo so unless I use
> > the VM argument server=standalone but then I can't control it from
> > Eclipse. All the traces one can export from the different views of TPTP
> > in Eclipse do not provide this trace.
> > Is it possible to somehow obtain this trace from the TPTP plugin in
> > Eclipse + use the pause and unpause buttons to control the profiler?
> >
> > My configuration:
> > Eclipse 3.4.1
> > TPTP Log and Trace Analyzer 4.5.0
> > TPTP Monitoring Tools Project 4.4.100
> > TPTPT Platform Project 4.5.1
> > TPTP Test Framework and Tools 4.3.300
> > TPTP Tracing and Profiling Tools Project 4.3.200
> >
> >
> > The trace I mentioned looks like this:
> > <?xml version="1.0"?>
> > <TRACE>
> > <node nodeId="" hostname="localhost" ipaddress="127.0.0.1" timezone="-
> > 60" time="1235550003.963170200"/>
> > <processCreate processId="e97c3855-88ef-4952-a3af-21517132d8bf"
> > pid="5336" nodeIdRef="" time="1235550003.963170200"/>
> > <agentCreate agentId="e4d8eece-f7f6-4c8e-bcf4-d1e4d11fb906"
> > version="2.000" processIdRef="e97c3855-88ef-4952-a3af-21517132d8bf"
> > agentName="org.eclipse.tptp.jvmti" agentType="Profiler"
> > agentParameters="server=standalone,file=log.trcxml,filters=filter.txt "
> > time="1235550004.119000000"/>
> > <traceStart traceId="94306197-a937-4dae-8684-e36643ccdfa8"
> > agentIdRef="e4d8eece-f7f6-4c8e-bcf4-d1e4d11fb906"
> > time="1235550004.132489842"/>
> > <filter pattern="com.sun" mode="EXCLUDE" genericPattern="SUFFIX"
> > methodPattern="" methodMode="EXCLUDE" methodGenericPattern="PREFIX"/>
Re: Getting full XML trace from Eclipse plugged-in TPTP [message #140792 is a reply to message #140782] Thu, 26 February 2009 15:48 Go to previous messageGo to next message
Eugene Chan is currently offline Eugene ChanFriend
Messages: 287
Registered: July 2009
Senior Member
Hi Benedikt,

You can switch the output format by setting the environment varialble
TPTP_OUTPUT_FORMAT=[xml|binary]Eugene
"Benedikt Burgstaller" <bb@sea.uni-linz.ac.at> wrote in message
news:MPG.24106197b4765f5989681@news.eclipse.org...
> Hi Eugene,
>
> thanks for your quick answer. I already tried this option. The data that
> is wrote into the file seems to be binary, not xml. Is there an option
> to change the output format?
>
> Regards,
> Benedikt
>
> In article <go40un$gg2$1@build.eclipse.org>, ewchan@ca.ibm.com says...
>>
>> Hi Benedikt,
>>
>> You can use the profile to file option to have the profiling data sent to
>> a
>> file on your file system. This can be done by enabling the 'Send
>> profiling
>> data to a file' Option under the Destination tab of a profile launch
>> configuration
>>
>> Eugene
>>
>> "Benedikt Burgstaller" <bb@sea.uni-linz.ac.at> wrote in message
>> news:MPG.240f7ca535a05cb989680@news.eclipse.org...
>> > Hi Everybody,
>> >
>> > i've been using the standalone TPTP Agent Controller (with
>> > server=standalone), receiving an xml log trace i'm using for trace
>> > analysis. I then tried to obtain this trace from the TPTP plugin
>> > integrated in Eclipse but could not find an option todo so unless I use
>> > the VM argument server=standalone but then I can't control it from
>> > Eclipse. All the traces one can export from the different views of TPTP
>> > in Eclipse do not provide this trace.
>> > Is it possible to somehow obtain this trace from the TPTP plugin in
>> > Eclipse + use the pause and unpause buttons to control the profiler?
>> >
>> > My configuration:
>> > Eclipse 3.4.1
>> > TPTP Log and Trace Analyzer 4.5.0
>> > TPTP Monitoring Tools Project 4.4.100
>> > TPTPT Platform Project 4.5.1
>> > TPTP Test Framework and Tools 4.3.300
>> > TPTP Tracing and Profiling Tools Project 4.3.200
>> >
>> >
>> > The trace I mentioned looks like this:
>> > <?xml version="1.0"?>
>> > <TRACE>
>> > <node nodeId="" hostname="localhost" ipaddress="127.0.0.1" timezone="-
>> > 60" time="1235550003.963170200"/>
>> > <processCreate processId="e97c3855-88ef-4952-a3af-21517132d8bf"
>> > pid="5336" nodeIdRef="" time="1235550003.963170200"/>
>> > <agentCreate agentId="e4d8eece-f7f6-4c8e-bcf4-d1e4d11fb906"
>> > version="2.000" processIdRef="e97c3855-88ef-4952-a3af-21517132d8bf"
>> > agentName="org.eclipse.tptp.jvmti" agentType="Profiler"
>> > agentParameters="server=standalone,file=log.trcxml,filters=filter.txt "
>> > time="1235550004.119000000"/>
>> > <traceStart traceId="94306197-a937-4dae-8684-e36643ccdfa8"
>> > agentIdRef="e4d8eece-f7f6-4c8e-bcf4-d1e4d11fb906"
>> > time="1235550004.132489842"/>
>> > <filter pattern="com.sun" mode="EXCLUDE" genericPattern="SUFFIX"
>> > methodPattern="" methodMode="EXCLUDE" methodGenericPattern="PREFIX"/>
>
>
Re: Getting full XML trace from Eclipse plugged-in TPTP [message #140803 is a reply to message #140792] Thu, 26 February 2009 16:55 Go to previous message
Benedikt Burgstaller is currently offline Benedikt BurgstallerFriend
Messages: 5
Registered: July 2009
Junior Member
Hi Eugene,

thanks for your help. It works now!

Regards,
Benedikt

In article <go6dpl$qi4$1@build.eclipse.org>, ewchan@ca.ibm.com says...
>
> Hi Benedikt,
>
> You can switch the output format by setting the environment varialble
> TPTP_OUTPUT_FORMAT=[xml|binary]Eugene
> "Benedikt Burgstaller" <bb@sea.uni-linz.ac.at> wrote in message
> news:MPG.24106197b4765f5989681@news.eclipse.org...
> > Hi Eugene,
> >
> > thanks for your quick answer. I already tried this option. The data that
> > is wrote into the file seems to be binary, not xml. Is there an option
> > to change the output format?
> >
> > Regards,
> > Benedikt
> >
> > In article <go40un$gg2$1@build.eclipse.org>, ewchan@ca.ibm.com says...
> >>
> >> Hi Benedikt,
> >>
> >> You can use the profile to file option to have the profiling data sent to
> >> a
> >> file on your file system. This can be done by enabling the 'Send
> >> profiling
> >> data to a file' Option under the Destination tab of a profile launch
> >> configuration
> >>
> >> Eugene
> >>
> >> "Benedikt Burgstaller" <bb@sea.uni-linz.ac.at> wrote in message
> >> news:MPG.240f7ca535a05cb989680@news.eclipse.org...
> >> > Hi Everybody,
> >> >
> >> > i've been using the standalone TPTP Agent Controller (with
> >> > server=standalone), receiving an xml log trace i'm using for trace
> >> > analysis. I then tried to obtain this trace from the TPTP plugin
> >> > integrated in Eclipse but could not find an option todo so unless I use
> >> > the VM argument server=standalone but then I can't control it from
> >> > Eclipse. All the traces one can export from the different views of TPTP
> >> > in Eclipse do not provide this trace.
> >> > Is it possible to somehow obtain this trace from the TPTP plugin in
> >> > Eclipse + use the pause and unpause buttons to control the profiler?
> >> >
> >> > My configuration:
> >> > Eclipse 3.4.1
> >> > TPTP Log and Trace Analyzer 4.5.0
> >> > TPTP Monitoring Tools Project 4.4.100
> >> > TPTPT Platform Project 4.5.1
> >> > TPTP Test Framework and Tools 4.3.300
> >> > TPTP Tracing and Profiling Tools Project 4.3.200
Previous Topic:TPTP 4.5.2 is released!
Next Topic:Problem with using TPTP's API Recorder
Goto Forum:
  


Current Time: Wed Apr 24 16:17:02 GMT 2024

Powered by FUDForum. Page generated in 0.03221 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top