<!ELEMENT extension (report)+>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT report EMPTY>
<!ATTLIST report
id CDATA #REQUIRED
name CDATA #REQUIRED
file CDATA #REQUIRED
description CDATA #IMPLIED>
Following is a sample report:<extension point=
"org.eclipse.mat.report.report"
>
<report id=
"suspects"
name=
"Leak Suspects"
description=
"includes leak suspects and a system overview"
file=
"META-INF/reports/suspects.xml"
/>
</extension>
In short: sections contain other sections or queries. Queries specify the command to be run. Sections can contain a template element which specifies another report to be included here.<section name=
"Leak Suspects"
>
<section name=
"System Overview"
>
<param key=
"html.separate_file"
value=
"true"
/>
<template>
org.eclipse.mat.api:overview</template>
</section>
<query name=
"Leaks"
>
<command>
leakhunter</command>
</query>
</section>
Copyright (c) 2008 SAP AG and others.
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License v1.0 which
accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html