Hi Sebastien,

The DTD file may not be up-to-dated. Have you tried import your file to 
TPTP via the Import>Profiling File action?
It should be okay to have both processCreate and  node under TRACE.

Regards.
___________________________________________

Eugene Chan
IBM Toronto Lab, Canada



From:
"Sebastien Tardif" <star...@nyc.saic.com>
To:
"TPTP Tracing and Profiling Tools Project developer discussions" 
<tptp-tracing-profiling-tools-dev@eclipse.org>
Date:
10/28/2009 05:47 PM
Subject:
RE: [tptp-tracing-profiling-tools-dev] How to generate 
XMLprofilecompatible with trace.dtd?
Sent by:
tptp-tracing-profiling-tools-dev-boun...@eclipse.org



I have finally generated a zipped xml file. I?m not sure what was needed, 
I put the flag at 3 different places and restarted my desktop.
 
However, it doesn?t pass validation of the DTD provided here: 
http://www.eclipse.org/tptp/platform/documents/resources/profilingspec/trace.dtd.html
 

 
So I deduct from this that it?s not an open official supported format, 
probably deprecated.

What I want to do is to create profiling information in my application 
without any third party library, save it in a format readable by TPTP 
tools, then use the tools for reporting, aggregating, and others.
 
The most popular use case is that everybody use thread dump to find 
bottleneck in the application, I don?t mean here locking and deadlock, but 
the most popular code, the slow code.
 
If we could convert thread dump to a format readable by TPTP then we would 
have a way to profile a production application without any extra jars, 
just doing many thread dump at certain intervals.
 
Trace generated was:
<?xml version="1.0"?>
<!DOCTYPE TRACE SYSTEM "h:\trace_dtd.dtd">
<TRACE>
            <node nodeId="" hostname="localhost" ipaddress="127.0.0.1" 
timezone="300" time="1256764963.081465300"/>
            <processCreate processId="a22542b9-849a-49cd-b085-36dcf1981dfb
" pid="5808" nodeIdRef="" time="1256764963.081465300"/>
            <agentCreate agentId="83dc9735-7b3b-40e0-a624-2ea89de58036" 
version="2.000" processIdRef="a22542b9-849a-49cd-b085-36dcf1981dfb" 
agentName="org.eclipse.tptp.jvmti" agentType="Profiler" agentParameters="
server=controlled" time="1256764963.790000000"/>
?
 
And validation error given is:
Content model of element ?TRACE? disallows element ?processCreate? at this 
position.
 
The DTD is saying a node OR a processCreate under TRACE is legal not both.
<!ELEMENT TRACE (node | processCreate | agentCreate | agentDestroy | 
(methodBody | methodCall | methodReturn?
 
 
From: tptp-tracing-profiling-tools-dev-boun...@eclipse.org [
mailto:tptp-tracing-profiling-tools-dev-boun...@eclipse.org] On Behalf Of 
Eugene Chan
Sent: Wednesday, October 28, 2009 4:25 PM
To: TPTP Tracing and Profiling Tools Project developer discussions
Cc: TPTP Tracing and Profiling Tools Project developer discussions; 
tptp-tracing-profiling-tools-dev-boun...@eclipse.org
Subject: RE: [tptp-tracing-profiling-tools-dev] How to generate 
XMLprofilecompatible with trace.dtd?
 

Hi, 

.trcbin extension was once used for binary profile file when TPTP was in 
transition from xml to binary format. The .trcxml file generated by data 
collector(eg server=standalone) or UI should now in binary format (zipped 
in UI use case).   

To activate the XML format, you will have to restart the Eclipse workbench 
and any data collector (ACServer.exe) that is running. 

Regards, 
___________________________________________

Eugene Chan
IBM Toronto Lab, Canada


From: 
"Sebastien Tardif" <star...@nyc.saic.com> 
To: 
"TPTP Tracing and Profiling Tools Project developer discussions" 
<tptp-tracing-profiling-tools-dev@eclipse.org> 
Date: 
10/28/2009 04:07 PM 
Subject: 
RE: [tptp-tracing-profiling-tools-dev] How to generate XML 
profilecompatible with trace.dtd? 
Sent by: 
tptp-tracing-profiling-tools-dev-boun...@eclipse.org
 




The environment variable can bet set in Eclipse or need to be in OS? I 
tried both without success, but maybe if it?s OS, I need to restart the 
system. 
  
So what is the expected format of the following extensions if .trcxml is 
already two kind of formats depending of an environment variable? 
1-      .trcxml 
2-      .trcbin 
  
  
  
From: tptp-tracing-profiling-tools-dev-boun...@eclipse.org [
mailto:tptp-tracing-profiling-tools-dev-boun...@eclipse.org] On Behalf Of 
Eugene Chan
Sent: Wednesday, October 28, 2009 4:00 PM
To: TPTP Tracing and Profiling Tools Project developer discussions
Cc: tptp-tracing-profiling-tools-dev@eclipse.org; 
tptp-tracing-profiling-tools-dev-boun...@eclipse.org
Subject: Re: [tptp-tracing-profiling-tools-dev] How to generate XML 
profilecompatible with trace.dtd? 
  

Hi 

There is an optional environment variable TPTP_OUTPUT_FORMAT that you can 
set (TPTP_OUTPUT_FORMAT=xml) to configure the collector to output the 
trcxml file in zipped xml file format. 

Regards. 
___________________________________________

Eugene Chan
IBM Toronto Lab, Canada


From: 
"Sebastien Tardif" <star...@nyc.saic.com> 
To: 
<tptp-tracing-profiling-tools-dev@eclipse.org> 
Date: 
10/28/2009 02:48 PM 
Subject: 
[tptp-tracing-profiling-tools-dev] How to generate XML profile compatible 
with trace.dtd? 
Sent by: 
tptp-tracing-profiling-tools-dev-boun...@eclipse.org

 
 





There is a DTD here: 
http://www.eclipse.org/tptp/platform/documents/resources/profilingspec/trace.dtd.html
 

 
So I want to generate XML file compliant to this using EclipseLink tools. 
 
When I go to the open a profile dialog I have choice of two extensions: 
*.trcxml 
*.trcbin 
 
The difference seems to be that .trcxml is in xml and .trcbin is in binary 
format. 
 
Then when configuring a Java Application running Profile, in tab 
Destination, the file dialog show only .trcxml, so I choose this. 
 
However, when the file is created during a Java profiling session, the 
file is binary. 
 
I need to be able to generate and read readable format. 
 
Blackbox binary files are not easy to integrate with. 
 
I?m using the latest fully packaged version: 
tptp.runtime.allInOne.win32.win32.x86-TPTP-4.6.1.zip 
_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev
_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev
_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev


_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev

Reply via email to