comparison agent/doc/clhsdb.html @ 10197:7b23cb975cf2

8011675: adding compilation level to replay data Reviewed-by: kvn, vlivanov
author iignatyev
date Thu, 25 Apr 2013 11:09:24 -0700
parents bd7a7ce2e264
children
comparison
equal deleted inserted replaced
10196:dc7db03f5aa2 10197:7b23cb975cf2
13 </p> 13 </p>
14 14
15 <p> 15 <p>
16 There is also JavaScript based SA command line interface called <a href="jsdb.html">jsdb</a>. 16 There is also JavaScript based SA command line interface called <a href="jsdb.html">jsdb</a>.
17 But, CLHSDB supports Unix shell-like (or dbx/gdb-like) command line interface with 17 But, CLHSDB supports Unix shell-like (or dbx/gdb-like) command line interface with
18 support for output redirection/appending (familiar >, >>), command history and so on. 18 support for output redirection/appending (familiar &gt;, &gt;&gt;), command history and so on.
19 Each CLHSDB command can have zero or more arguments and optionally end with output redirection 19 Each CLHSDB command can have zero or more arguments and optionally end with output redirection
20 (or append) to a file. Commands may be stored in a file and run using <b>source</b> command. 20 (or append) to a file. Commands may be stored in a file and run using <b>source</b> command.
21 <b>help</b> command prints usage message for all supported commands (or a specific command) 21 <b>help</b> command prints usage message for all supported commands (or a specific command)
22 </p> 22 </p>
23 23
47 dumpclass { address | name } [ directory ] <font color="red">dump .class file for given Klass* or class name</font> 47 dumpclass { address | name } [ directory ] <font color="red">dump .class file for given Klass* or class name</font>
48 dumpcodecache <font color="red">dump codecache contents</font> 48 dumpcodecache <font color="red">dump codecache contents</font>
49 dumpheap [ file ] <font color="red">dump heap in hprof binary format</font> 49 dumpheap [ file ] <font color="red">dump heap in hprof binary format</font>
50 dumpideal -a | id <font color="red">dump ideal graph like debug flag -XX:+PrintIdeal</font> 50 dumpideal -a | id <font color="red">dump ideal graph like debug flag -XX:+PrintIdeal</font>
51 dumpilt -a | id <font color="red">dump inline tree for C2 compilation</font> 51 dumpilt -a | id <font color="red">dump inline tree for C2 compilation</font>
52 dumpreplaydata <address> | -a | <thread_id> [>replay.txt] <font color="red">dump replay data into a file</font> 52 dumpreplaydata &lt;address&gt; | -a | &lt;thread_id&gt; [&gt;replay.txt] <font color="red">dump replay data into a file</font>
53 echo [ true | false ] <font color="red">turn on/off command echo mode</font> 53 echo [ true | false ] <font color="red">turn on/off command echo mode</font>
54 examine [ address/count ] | [ address,address] <font color="red">show contents of memory from given address</font> 54 examine [ address/count ] | [ address,address] <font color="red">show contents of memory from given address</font>
55 field [ type [ name fieldtype isStatic offset address ] ] <font color="red">print info about a field of HotSpot type</font> 55 field [ type [ name fieldtype isStatic offset address ] ] <font color="red">print info about a field of HotSpot type</font>
56 findpc address <font color="red">print info. about pointer location</font> 56 findpc address <font color="red">print info. about pointer location</font>
57 flags [ flag ] <font color="red">show all -XX flag name value pairs. or just show given flag</font> 57 flags [ flag ] <font color="red">show all -XX flag name value pairs. or just show given flag</font>
94 </code> 94 </code>
95 </pre> 95 </pre>
96 96
97 <h3>JavaScript integration</h3> 97 <h3>JavaScript integration</h3>
98 98
99 <p>Few CLHSDB commands are already implemented in JavaScript. It is possible to extend CLHSDB command set 99 <p>Few CLHSDB commands are already implemented in JavaScript. It is possible to extend CLHSDB command set
100 by implementing more commands in a JavaScript file and by loading it by <b>jsload</b> command. <b>jseval</b> 100 by implementing more commands in a JavaScript file and by loading it by <b>jsload</b> command. <b>jseval</b>
101 command may be used to evaluate arbitrary JavaScript expression from a string. Any JavaScript function 101 command may be used to evaluate arbitrary JavaScript expression from a string. Any JavaScript function
102 may be exposed as a CLHSDB command by registering it using JavaScript <b><code>registerCommand</code></b> 102 may be exposed as a CLHSDB command by registering it using JavaScript <b><code>registerCommand</code></b>
103 function. This function accepts command name, usage and name of the JavaScript implementation function 103 function. This function accepts command name, usage and name of the JavaScript implementation function
104 as arguments. 104 as arguments.
105 </p> 105 </p>
106 106
107 <h3>Simple CLHSDB command implemented in JavaScript</h3> 107 <h3>Simple CLHSDB command implemented in JavaScript</h3>
108 108
125 <code> 125 <code>
126 hsdb&gt; jsload test.js 126 hsdb&gt; jsload test.js
127 </code> 127 </code>
128 </pre> 128 </pre>
129 129
130 <h3>C2 Compilation Replay</h3> 130 <h3>Compilation Replay</h3>
131 <p> 131 <p>
132 When a java process crashes in compiled method, usually a core file is saved. 132 When a java process crashes in compiled method, usually a core file is saved.
133 The C2 replay function can reproduce the compiling process in the core. 133 The replay function can reproduce the compiling process in the core.
134 <a href="c2replay.html">c2replay.html</a> 134 <a href="cireplay.html">cireplay.html</a>
135 135
136 </body> 136 </body>
137 </html> 137 </html>