Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Can TPTP do this?
Can TPTP do this? [message #134344] Sat, 16 August 2008 16:06 Go to next message
Eric T is currently offline Eric T
Messages: 3
Registered: July 2009
Junior Member
Hi All,

I am new to TPTP (referred by google :>). I wonder if TPTP can help me to
the following.

I have a C++ application which I would like to profile by just inserting
logs or traces. I want to record the execution call graph and the time it
take to run each function. xml file will be generated

I want to visualize this in TPTP. Call graph with hotspot, table of
functions sorted by time taken, filtering etc.

I am thinking about writing some extender of TPTP to read in the xml file
I created and somehow talk to the TPTP framework to tell it about the
execution and timing data.

Am I on the right track? Can TPTP do this?

Thanks!
Re: Can TPTP do this? [message #134360 is a reply to message #134344] Mon, 18 August 2008 17:16 Go to previous messageGo to next message
Eugene Chan is currently offline Eugene Chan
Messages: 287
Registered: July 2009
Senior Member
Hi Eric,

Instead of extender to read in the xml file, you can log the information in
the XML4Trace format
( http://www.eclipse.org/tptp/platform/documents/resources/pro filingspec/XML4Profiling.htm)
which can then be imported as regular profile file to TPTP and be visualized
in TPTP tables and graphs.

To generate an example of profiling file, you can profile a Java application
with TPTP 4.4.1 and specify to send profile data to a file (under the
monitor tab of the profiling configuration). It's a zipped text file and you
can unzip it to inspect its content.

Eugene

"Eric" <ws1088@gmail.com> wrote in message
news:e0b639f88d2b387d01184adb41eb5260$1@www.eclipse.org...
> Hi All,
>
> I am new to TPTP (referred by google :>). I wonder if TPTP can help me to
> the following.
>
> I have a C++ application which I would like to profile by just inserting
> logs or traces. I want to record the execution call graph and the time it
> take to run each function. xml file will be generated
>
> I want to visualize this in TPTP. Call graph with hotspot, table of
> functions sorted by time taken, filtering etc.
>
> I am thinking about writing some extender of TPTP to read in the xml file
> I created and somehow talk to the TPTP framework to tell it about the
> execution and timing data.
> Am I on the right track? Can TPTP do this?
>
> Thanks!
>
Re: Can TPTP do this? [message #134391 is a reply to message #134360] Mon, 18 August 2008 23:48 Go to previous messageGo to next message
Eric T is currently offline Eric T
Messages: 3
Registered: July 2009
Junior Member
Thanks, I think XML4Trace will work for me.

Is there a C++ library/API which I can use to generate this format?

Thanks!
Re: Can TPTP do this? [message #135214 is a reply to message #134360] Thu, 28 August 2008 21:32 Go to previous messageGo to next message
Eric T is currently offline Eric T
Messages: 3
Registered: July 2009
Junior Member
I tried Eugene's suggestion and profiled a sample java application. I got
a trcxml file and uncompress it and it has several .bin files (I assume
one .bin files represent one trace). However, I cannot uncompress the .bin
file.

Can you shed some light on how can I create my trcxml file with multiple
trace using C++ or perl (basically ASII). Thanks!
Re: Can TPTP do this? [message #135288 is a reply to message #135214] Sat, 30 August 2008 01:47 Go to previous messageGo to next message
Yunan, He is currently offline Yunan, He
Messages: 4
Registered: July 2009
Junior Member
Eric,

The bin file is in compressed XML format (it's called binary file). You
can find the definition by check the below link:
https://bugs.eclipse.org/bugs/attachment.cgi?id=89144
https://bugs.eclipse.org/bugs/attachment.cgi?id=93126

These two links are the attachments of Bugzilla 196713, you can also check
the discussion on compressed file format by checking link:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=196713

Hope it helps.

Thanks.
Re: Can TPTP do this? [message #135849 is a reply to message #135288] Tue, 16 September 2008 14:11 Go to previous message
Eugene Chan is currently offline Eugene Chan
Messages: 287
Registered: July 2009
Senior Member
Hi Eric,

The source code for emitting trace XML fragments is in
org.eclipse.tptp.platform.jvmti.runtime/sec-native/src/JPIAg ent/PrintXML.cpp
(and PrintXML.h). It was not designed to be fully reuse butt take a look for
information on how to generate the events there.

Eugene

"Yunan, He" <yunan.he@intel.com> wrote in message
news:3978b90368aabf7c30607fadbfcc24d8$1@www.eclipse.org...
> Eric,
>
> The bin file is in compressed XML format (it's called binary file). You
> can find the definition by check the below link:
> https://bugs.eclipse.org/bugs/attachment.cgi?id=89144
> https://bugs.eclipse.org/bugs/attachment.cgi?id=93126
>
> These two links are the attachments of Bugzilla 196713, you can also check
> the discussion on compressed file format by checking link:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=196713
>
> Hope it helps.
> Thanks.
Previous Topic:profiling console application with TPTP - and nothing happens
Next Topic:language packs tptp 4.4
Goto Forum:
  


Current Time: Sun Oct 26 09:37:46 GMT 2014

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

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