![]() |
|
|
|
Command line reference
GeneralThis reference refers to profilerjCMD.sh and profilerjCMD.cmd respectively. ProfilerCMD is a simple command line based tool. It sends requests to the (remote) profilerj Agent and receives responses on completion. By default, communication is done via socket (localhost, port 9000). If the agent runs on a different machine, start profilerCMD with arguments -host host -port port.
helpSyntax: h[elp] Prints a list of available commands.
infoSyntax: in[fo] Sends a request to the agent (via socket) and shows the result. The outcome is something like this: {suspended=true, stopped=true, cpu=false, memory=false, sampler=false}
resumeSyntax: re[sume] If the application to be debugged starts with -javaagent:com.terrasoft.jrc.agent.jar=suspend=y, it will wait until it receives a resume-request. Note that resume may only be sent once - there is no suspend command.
gcSyntax: gc Requests agent to execute a System.gc() .
quitSyntax: quit Exits the tool.
samplerSyntax: sam[pler] on|off Switches sampling on or off. See also info.
bciSyntax: bci off | mi|me|ci|ce|Ci|Ce=pattern1;pattern2 .... bci off switches byte-code-instrumentation off. This involves removing all previously injected code by reloading all modified classes. mi, me, ci, ce, Ci and Ce stand for
Each of them requires a pattern which must be a "regular expression". mi and me define for which classes a memory profile should be taken, ci and ce specify classes to be profiled (method profiling data). Ci and Ce specify which classes should be instrumented to gain coverage metrics. Examples:
memorySyntax: mem[ory] on|off Switches BCI memory allocation profiling off. Will be automatically set by bci.
cpuSyntax: cpu on|off Switches BCI method profiling off. Will be automatically set by bci.
startSyntax: sta[rt] Starts previously stopped BCI profiling.
stopSyntax: sto[p] Stops BCI profiling but doesn't remove injected code.
snapshotSyntax: sn[apshot] [filename] [remote|local] Creates a snapshot-file (see Snapshot File Format) either on the local or remote machine. Local is the machine where profilerjCMD runs, remote is where the agent (and the application to be profiled) resides. Examples
clearSyntax: cl[ear] Clears snapshot data.
|