blob: 32d54f779ee7429d250267ec3a2ac6d26a5ac6c6 [file] [log] [blame]
<etfwTool xmlns="http://eclipse.org/ptp/etfw" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rm="http://eclipse.org/ptp/rm"
xsi:schemaLocation="etfw_tool_type.xsd" name="perfsuite" prepend-execution="false" recompile="false" explicit-execution="false">
<controlData>
<attribute name="PERFSUITE_psrun.configuration_id_-CONFIG" type="boolean" translateBooleanAs="-c, ">
<rm:description>Specify configuration file</rm:description>
</attribute>
<attribute name="PERFSUITE_psrun.configuration_id_-CONFIG_SAVED" type="string">
<rm:description>Specified configuration file</rm:description>
</attribute>
<attribute name="PERFSUITE_psrun.configuration_id_-DOMAIN" type="boolean" translateBooleanAs="-d, ">
<rm:description>Specify domain</rm:description>
<rm:default>
</rm:default>
</attribute>
<attribute name="PERFSUITE_psrun.configuration_id_-DOMAIN_SAVED" type="choice">
<rm:description>Specified domain</rm:description>
<rm:choice>user,kernel,all</rm:choice>
<rm:default>user</rm:default>
</attribute>
<attribute name="PERFSUITE_psrun.environmentvariables.configuration_id_PS_HWPC_FORMAT" type="choice">
<rm:description>Specify the output format (xml or plain text)</rm:description>
<rm:choice>xml,text</rm:choice>
<rm:default>xml</rm:default>
</attribute>
<attribute name="PERFSUITE_psrun.configuration_id_-MD5" type="boolean" translateBooleanAs="--md5, ">
<rm:description>Include MD5 checksums in output</rm:description>
<rm:default>
</rm:default>
</attribute>
<!-- This could be specified as an environment variable or flag passed to psrun <attribute name="PERFSUITE_psrun.environmentvariables.configuration_id_PS_HWPC_DOMAIN"
type="choice"> <rm:description>Domain to use (user|kernal|all)</rm:description> <rm:choice>user,kernel,all</rm:choice> <rm:default>user</rm:default>
</attribute> -->
<attribute name="PERFSUITE_psrun.configuration_id_-POSIX" type="boolean" translateBooleanAs="-p, ">
<rm:description>Enable POSIX thread support</rm:description>
<rm:default>
</rm:default>
</attribute>
<attribute name="PERFSUITE_psrun.configuration_id_-RESOURCE_USAGE" type="boolean" translateBooleanAs="--resource=, ">
<rm:description>Collect resource usage</rm:description>
<rm:default>
</rm:default>
</attribute>
<attribute name="PERFSUITE_psrun.configuration_id_-RESOURCE_USAGE_SAVED" type="string">
<rm:description>Resource usage collection rate</rm:description>
<rm:default>1</rm:default>
</attribute>
<attribute name="PERFSUITE_psrun.configuration_id_-RESOURCE_USAGE_ONLY" type="boolean" translateBooleanAs="--resourceonly=, ">
<rm:description>Collect resource usage only</rm:description>
<rm:default>
</rm:default>
</attribute>
<attribute name="PERFSUITE_psrun.configuration_id_-RESOURCE_USAGE_ONLY_SAVED" type="string">
<rm:description>Resource usage collection rate</rm:description>
<rm:default>1</rm:default>
</attribute>
<attribute name="PERFSUITE_psrun.configuration_id_-SIGNAL_NUMBERS" type="boolean" translateBooleanAs="-S, ">
<rm:description>Write Signal Numbers</rm:description>
<rm:default>
</rm:default>
</attribute>
<attribute name="PERFSUITE_psrun.configuration_id_-SIGNAL_NUMBERS_SAVED" type="string">
<rm:description>Signal numbers to be written prior to process exit</rm:description>
</attribute>
<attribute name="PERFSUITE_psrun.configuration_id_-OVERFLOW_THRESHOLD" type="boolean" translateBooleanAs="-t, ">
<rm:description>Specify overflow threshold</rm:description>
<rm:default>
</rm:default>
</attribute>
<attribute name="PERFSUITE_psrun.configuration_id_-OVERFLOW_THRESHOLD_SAVED" type="string">
<rm:description>Specify overflow threshold</rm:description>
</attribute>
<attribute name="PERFSUITE_psrun.configuration_id_-OUTPUT" type="boolean" translateBooleanAs="-o, ">
<rm:description>Use output prefix</rm:description>
<rm:default>-o</rm:default>
</attribute>
<attribute name="PERFSUITE_psrun.configuration_id_-OUTPUT_SAVED" type="string">
<rm:description>Output prefix</rm:description>
<rm:default>psprocess</rm:default>
</attribute>
<attribute name="PERFSUITE_psrun.configuration_id_-FORK" type="boolean" translateBooleanAs="-f, ">
<rm:description>Monitor child processes (default no)</rm:description>
<rm:default></rm:default>
</attribute>
<!-- PSProcess Attributes -->
<attribute name="PERFSUITE_psprocess.configuration_id_XMLOUTPUT" type="boolean" translateBooleanAs="-x, ">
</attribute>
<attribute name="PERFSUITE_psprocess.configuration_id_INPUTFILE" type="string">
</attribute>
<attribute name="PERFSUITE_psprocess.configuration_id_GLOB" type="boolean" translateBooleanAs="--glob , ">
<rm:default>--glob</rm:default>
</attribute>
<attribute name="PERFSUITE_psprocess.configuration_id_GLOB_SAVED" visible="false">
</attribute>
<attribute name="psProcessOutputDirectoryCB" type="boolean">
<rm:default>true</rm:default>
</attribute>
<attribute name="org.eclipse.ptp.launch.WORKING_DIR_ATTR">
</attribute>
<attribute name="PERFSUITE_psprocess.configuration_id_-OUTPUT" type="boolean" translateBooleanAs="-o, ">
<rm:description>Specify output file</rm:description>
<rm:default>-o</rm:default>
</attribute>
<attribute name="PERFSUITE_psprocess.configuration_id_-OUTPUT_SAVED" type="string">
<rm:description>Output file name</rm:description>
<rm:default>mhpr.xml</rm:default>
</attribute>
<attribute name="PERFSUITE_psprocess.configuration_id_-BRIEF" type="boolean" translateBooleanAs="-b, ">
<rm:description>Brief output (no machine information)</rm:description>
<rm:default></rm:default>
</attribute>
<attribute name="PERFSUITE_psprocess.configuration_id_THRESHOLD" type="boolean" translateBooleanAs="-t, ">
<rm:default></rm:default>
</attribute>
<attribute name="PERFSUITE_psprocess.configuration_id_THRESHOLD_SAVED" visible="false">
<rm:default></rm:default>
</attribute>
<attribute name="PERFSUITE_psprocess.configuration_id_-CUSTOMMETRICSFILE" type="boolean" translateBooleanAs="-m, ">
<rm:description>Specify custom metric definition file</rm:description>
</attribute>
<attribute name="PERFSUITE_psprocess.configuration_id_-CUSTOMMETRICSFILE_SAVED" type="string">
<rm:description>Save custom metric definition file</rm:description>
</attribute>
</controlData>
<execTool tool-name="PerfSuite">
<execUtils tool-command="psrun">
<toolPanes virtual="false" embedded="false">
<configId>PERFSUITE_psrun.configuration_id_</configId>
<configVarId>PERFSUITE_psrun.environmentvariables.configuration_id_</configVarId>
<optionPane>
<rm:title>PSRun</rm:title>
<rm:layout>
<rm:grid-layout />
</rm:layout>
<rm:composite>
<rm:layout>
<rm:grid-layout numColumns="3" makeColumnsEqualWidth="false" />
</rm:layout>
<rm:layout-data>
<rm:grid-data horizontalAlign="SWT.FILL" verticalAlign="SWT.FILL" grabExcessHorizontal="true" />
</rm:layout-data>
<rm:widget type="combo" title="File Format" readOnly="true" style="SWT.LEFT"
attribute="PERFSUITE_psrun.environmentvariables.configuration_id_PS_HWPC_FORMAT">
<rm:layout-data>
<rm:grid-data widthHint="150" horizontalAlign="SWT.FILL" grabExcessHorizontal="false" horizontalSpan="2" />
</rm:layout-data>
<rm:tooltip>Output format, either xml or text</rm:tooltip>
</rm:widget>
<rm:widget type="checkbox" title="Configuration" buttonId="config-dir-button" style="SWT.LEFT"
attribute="PERFSUITE_psrun.configuration_id_-CONFIG">
<rm:layout-data>
<rm:grid-data widthHint="150" horizontalAlign="SWT.FILL" grabExcessHorizontal="false" horizontalSpan="1" />
</rm:layout-data>
<rm:tooltip>Specify a configuration file</rm:tooltip>
</rm:widget>
<rm:browse title="Browse..." localOnly="false" directory="false" textStyle="SWT.BORDER"
attribute="PERFSUITE_psrun.configuration_id_-CONFIG_SAVED">
<rm:text-layout-data>
<rm:grid-data horizontalSpan="1" horizontalAlign="SWT.FILL" verticalAlign="SWT.FILL" grabExcessHorizontal="true" />
</rm:text-layout-data>
<rm:button-layout-data>
<rm:grid-data horizontalSpan="1" horizontalAlign="SWT.FILL" verticalAlign="SWT.FILL" grabExcessHorizontal="false" />
</rm:button-layout-data>
<rm:tooltip>Location of the configuration file to use with PerfSuite</rm:tooltip>
<rm:text-control-state>
<rm:enable-if button="config-dir-button" selected="true" />
</rm:text-control-state>
<rm:button-control-state>
<rm:enable-if button="config-dir-button" selected="true" />
</rm:button-control-state>
</rm:browse>
<rm:widget type="checkbox" title="MD5 checksum" style="SWT.LEFT" attribute="PERFSUITE_psrun.configuration_id_-MD5">
<rm:layout-data>
<rm:grid-data widthHint="150" horizontalAlign="SWT.FILL" grabExcessHorizontal="true" horizontalSpan="3" />
</rm:layout-data>
<rm:tooltip>Include MD5 checksums in output</rm:tooltip>
</rm:widget>
<rm:widget type="checkbox" title="Fork Support" style="SWT.LEFT" attribute="PERFSUITE_psrun.configuration_id_-FORK">
<rm:layout-data>
<rm:grid-data widthHint="150" horizontalAlign="SWT.FILL" grabExcessHorizontal="true" horizontalSpan="3" />
</rm:layout-data>
<rm:tooltip>Monitor child processes (default no)</rm:tooltip>
</rm:widget>
<rm:widget type="checkbox" title="Domain" buttonId="domain-button" style="SWT.LEFT" attribute="PERFSUITE_psrun.configuration_id_-DOMAIN">
<rm:layout-data>
<rm:grid-data widthHint="150" horizontalAlign="SWT.FILL" grabExcessHorizontal="false" horizontalSpan="1" />
</rm:layout-data>
<rm:tooltip>Select counting domain (user, kernel, all)</rm:tooltip>
</rm:widget>
<rm:widget type="combo" readOnly="true" style="SWT.LEFT" attribute="PERFSUITE_psrun.configuration_id_-DOMAIN_SAVED">
<rm:layout-data>
<rm:grid-data widthHint="150" horizontalAlign="SWT.FILL" grabExcessHorizontal="true" horizontalSpan="2" />
</rm:layout-data>
<rm:control-state>
<rm:enable-if button="domain-button" selected="true" />
</rm:control-state>
</rm:widget>
<rm:widget type="checkbox" title="POSIX" style="SWT.LEFT" attribute="PERFSUITE_psrun.configuration_id_-POSIX">
<rm:layout-data>
<rm:grid-data widthHint="150" horizontalAlign="SWT.FILL" grabExcessHorizontal="false" horizontalSpan="3" />
</rm:layout-data>
<rm:tooltip>Enable POSIX thread support</rm:tooltip>
</rm:widget>
<rm:widget type="checkbox" title="Resource Usage" buttonId="resource-usage-button" style="SWT.LEFT"
attribute="PERFSUITE_psrun.configuration_id_-RESOURCE_USAGE">
<rm:layout-data>
<rm:grid-data widthHint="150" horizontalAlign="SWT.FILL" grabExcessHorizontal="false" horizontalSpan="1" />
</rm:layout-data>
<rm:tooltip>Include resource usage statistics</rm:tooltip>
</rm:widget>
<rm:widget type="text" style="SWT.BORDER" attribute="PERFSUITE_psrun.configuration_id_-RESOURCE_USAGE_SAVED">
<rm:layout-data>
<rm:grid-data horizontalAlign="SWT.FILL" grabExcessHorizontal="true" horizontalSpan="2" />
</rm:layout-data>
<rm:tooltip>Optionally include resource sampling interval (seconds)</rm:tooltip>
<rm:control-state>
<rm:enable-if button="resource-usage-button" selected="true" />
</rm:control-state>
</rm:widget>
<rm:widget type="checkbox" title="Resource Usage Only" buttonId="resource-usage-only-button" style="SWT.LEFT"
attribute="PERFSUITE_psrun.configuration_id_-RESOURCE_USAGE_ONLY">
<rm:layout-data>
<rm:grid-data horizontalAlign="SWT.FILL" grabExcessHorizontal="false" horizontalSpan="1" />
</rm:layout-data>
<rm:tooltip>Only collect resource usage data</rm:tooltip>
</rm:widget>
<rm:widget type="text" style="SWT.BORDER" attribute="PERFSUITE_psrun.configuration_id_-RESOURCE_USAGE_ONLY_SAVED">
<rm:layout-data>
<rm:grid-data horizontalAlign="SWT.FILL" grabExcessHorizontal="true" horizontalSpan="2" />
</rm:layout-data>
<rm:tooltip>Optionally include resource sampling interval (seconds)</rm:tooltip>
<rm:control-state>
<rm:enable-if button="resource-usage-only-button" selected="true" />
</rm:control-state>
</rm:widget>
<rm:widget type="checkbox" title="Write Signal Numbers" buttonId="signal-numbers-button" style="SWT.LEFT"
attribute="PERFSUITE_psrun.configuration_id_-SIGNAL_NUMBERS">
<rm:layout-data>
<rm:grid-data horizontalAlign="SWT.FILL" grabExcessHorizontal="false" horizontalSpan="1" />
</rm:layout-data>
<rm:tooltip>Specify a comma separated list of signal numbers to write prior to process exit</rm:tooltip>
</rm:widget>
<rm:widget type="text" style="SWT.BORDER" attribute="PERFSUITE_psrun.configuration_id_-SIGNAL_NUMBERS_SAVED">
<rm:layout-data>
<rm:grid-data horizontalAlign="SWT.FILL" grabExcessHorizontal="true" horizontalSpan="2" />
</rm:layout-data>
<rm:control-state>
<rm:enable-if button="signal-numbers-button" selected="true" />
</rm:control-state>
</rm:widget>
<rm:widget type="checkbox" title="Overflow Threshold" buttonId="overflow-threshold-button" style="SWT.LEFT"
attribute="PERFSUITE_psrun.configuration_id_-OVERFLOW_THRESHOLD">
<rm:layout-data>
<rm:grid-data horizontalAlign="SWT.FILL" grabExcessHorizontal="false" horizontalSpan="1" />
</rm:layout-data>
<rm:tooltip>Specify overflow threadhold to be used for profiling</rm:tooltip>
</rm:widget>
<rm:widget type="text" style="SWT.BORDER" attribute="PERFSUITE_psrun.configuration_id_-OVERFLOW_THRESHOLD_SAVED">
<rm:layout-data>
<rm:grid-data horizontalAlign="SWT.FILL" grabExcessHorizontal="true" horizontalSpan="2" />
</rm:layout-data>
<rm:control-state>
<rm:enable-if button="overflow-threshold-button" selected="true" />
</rm:control-state>
</rm:widget>
<rm:widget type="checkbox" title="Output Prefix" buttonId="outputCB" style="SWT.LEFT"
attribute="PERFSUITE_psrun.configuration_id_-OUTPUT">
<rm:layout-data>
<rm:grid-data widthHint="150" horizontalAlign="SWT.FILL" grabExcessHorizontal="false" horizontalSpan="1" />
</rm:layout-data>
<rm:tooltip>Specify output prefix</rm:tooltip>
</rm:widget>
<rm:widget type="text" style="SWT.BORDER" attribute="PERFSUITE_psrun.configuration_id_-OUTPUT_SAVED">
<rm:layout-data>
<rm:grid-data horizontalAlign="SWT.FILL" grabExcessHorizontal="true" horizontalSpan="2" />
</rm:layout-data>
<rm:tooltip>Output prefix to use</rm:tooltip>
<rm:control-state>
<rm:enable-if button="outputCB" selected="true" />
</rm:control-state>
</rm:widget>
</rm:composite>
</optionPane>
</toolPanes>
</execUtils>
</execTool>
<analysisTool>
<analysis-commands tool-command="psprocess">
<!-- <toolArguments value="-glob mytest*"/> -->
<toolPanes virtual="false" embedded="false">
<configId>PERFSUITE_psprocess.configuration_id_</configId>
<configVarId>PERFSUITE_psprocess.environmentvariables.configuration_id_</configVarId>
<optionPane>
<rm:title>PSProcess</rm:title>
<rm:layout>
<rm:grid-layout />
</rm:layout>
<rm:composite>
<rm:layout>
<rm:grid-layout numColumns="3" makeColumnsEqualWidth="false" />
</rm:layout>
<rm:layout-data>
<rm:grid-data horizontalAlign="SWT.FILL" verticalAlign="SWT.FILL" grabExcessHorizontal="true" />
</rm:layout-data>
<rm:widget type="checkbox" title="XML Output" buttonId="xmlOutputCB" style="SWT.LEFT" attribute="PERFSUITE_psprocess.configuration_id_XMLOUTPUT">
<rm:layout-data>
<rm:grid-data widthHint="150" horizontalAlign="SWT.FILL" grabExcessHorizontal="false" horizontalSpan="3" />
</rm:layout-data>
<rm:tooltip>Produce xml as output</rm:tooltip>
</rm:widget>
<rm:widget type="checkbox" title="Limit Output" buttonId="briefOutputCB" style="SWT.LEFT" attribute="PERFSUITE_psprocess.configuration_id_-BRIEF">
<rm:layout-data>
<rm:grid-data widthHint="150" horizontalAlign="SWT.FILL" grabExcessHorizontal="false" horizontalSpan="3" />
</rm:layout-data>
<rm:tooltip>Brief output (no machine information)</rm:tooltip>
</rm:widget>
<rm:widget type="checkbox" title="Reporting Threshold" buttonId="thresholdCB" style="SWT.LEFT"
attribute="PERFSUITE_psprocess.configuration_id_THRESHOLD">
<rm:layout-data>
<rm:grid-data horizontalAlign="SWT.FILL" grabExcessHorizontal="false" horizontalSpan="1" />
</rm:layout-data>
<rm:tooltip>Set minimum % to report</rm:tooltip>
</rm:widget>
<rm:widget type="text" style="SWT.BORDER" attribute="PERFSUITE_psprocess.configuration_id_THRESHOLD_SAVED">
<rm:layout-data>
<rm:grid-data horizontalAlign="SWT.FILL" grabExcessHorizontal="true" horizontalSpan="2" />
</rm:layout-data>
<rm:tooltip>Set minimum % to report</rm:tooltip>
<rm:control-state>
<rm:enable-if button="thresholdCB" selected="true" />
</rm:control-state>
</rm:widget>
<rm:widget type="checkbox" title="Custom Metrics" buttonId="customMetricsCB" style="SWT.LEFT"
attribute="PERFSUITE_psprocess.configuration_id_-CUSTOMMETRICSFILE">
<rm:layout-data>
<rm:grid-data widthHint="150" horizontalAlign="SWT.FILL" grabExcessHorizontal="false" horizontalSpan="1" />
</rm:layout-data>
<rm:tooltip>Specify custom metric definition file</rm:tooltip>
</rm:widget>
<rm:browse title="Browse..." localOnly="false" directory="false" textStyle="SWT.BORDER"
attribute="PERFSUITE_psprocess.configuration_id_-CUSTOMMETRICSFILE_SAVED">
<rm:text-layout-data>
<rm:grid-data horizontalSpan="1" horizontalAlign="SWT.FILL" verticalAlign="SWT.FILL" grabExcessHorizontal="true" />
</rm:text-layout-data>
<rm:button-layout-data>
<rm:grid-data horizontalSpan="1" horizontalAlign="SWT.FILL" verticalAlign="SWT.FILL" grabExcessHorizontal="false" />
</rm:button-layout-data>
<rm:tooltip>Specify custom metric definition file</rm:tooltip>
<rm:text-control-state>
<rm:enable-if button="customMetricsCB" selected="true" />
</rm:text-control-state>
<rm:button-control-state>
<rm:enable-if button="customMetricsCB" selected="true" />
</rm:button-control-state>
</rm:browse>
<rm:widget type="label" style="SWT.LEFT">
<rm:layout-data>
<rm:grid-data horizontalAlign="SWT.BEGINNING" grabExcessHorizontal="false"/>
</rm:layout-data>
<rm:tooltip>Specify the directory of the psrun output to post process</rm:tooltip>
<rm:fixed-text>Output Directory:</rm:fixed-text>
</rm:widget>
<rm:browse title="Browse..." localOnly="false" directory="true" textStyle="SWT.BORDER"
attribute="org.eclipse.ptp.launch.WORKING_DIR_ATTR">
<rm:text-layout-data>
<rm:grid-data horizontalSpan="1" horizontalAlign="SWT.FILL" verticalAlign="SWT.FILL" grabExcessHorizontal="true" />
</rm:text-layout-data>
<rm:button-layout-data>
<rm:grid-data horizontalSpan="1" horizontalAlign="SWT.FILL" verticalAlign="SWT.FILL" grabExcessHorizontal="false" />
</rm:button-layout-data>
<rm:tooltip>Location of the psrun output files</rm:tooltip>
</rm:browse>
<rm:widget type="label" style="SWT.LEFT">
<rm:layout-data>
<rm:grid-data horizontalAlign="SWT.BEGINNING" grabExcessHorizontal="false"/>
</rm:layout-data>
<rm:tooltip>Perform filename expansion using the pattern specified (e.g. psprocess*)</rm:tooltip>
<rm:fixed-text>Input file pattern:</rm:fixed-text>
</rm:widget>
<rm:widget type="text" style="SWT.BORDER" attribute="PERFSUITE_psprocess.configuration_id_GLOB_SAVED">
<rm:layout-data>
<rm:grid-data horizontalAlign="SWT.FILL" grabExcessHorizontal="true" horizontalSpan="2" />
</rm:layout-data>
<rm:tooltip>Perform filename expansion using the pattern specified (e.g. psprocess*)</rm:tooltip>
</rm:widget>
<rm:widget type="checkbox" title="Output" buttonId="psProcessOutputCB" style="SWT.LEFT"
attribute="PERFSUITE_psprocess.configuration_id_-OUTPUT">
<rm:layout-data>
<rm:grid-data widthHint="150" horizontalAlign="SWT.FILL" grabExcessHorizontal="false" horizontalSpan="1" />
</rm:layout-data>
<rm:tooltip>Specify output file name</rm:tooltip>
</rm:widget>
<rm:widget type="text" style="SWT.BORDER" attribute="PERFSUITE_psprocess.configuration_id_-OUTPUT_SAVED">
<rm:layout-data>
<rm:grid-data horizontalAlign="SWT.FILL" grabExcessHorizontal="true" horizontalSpan="2" />
</rm:layout-data>
<rm:tooltip>Output file name</rm:tooltip>
<rm:control-state>
<rm:enable-if button="psProcessOutputCB" selected="true" />
</rm:control-state>
</rm:widget>
</rm:composite>
</optionPane>
</toolPanes>
</analysis-commands>
</analysisTool>
</etfwTool>