[Jrat-development] Getting started with JRat
Brought to you by:
jeffdrost
|
From: Virilo T. <vi...@gm...> - 2009-11-05 13:02:14
|
Hi.
I have installed JRat on my development environment. My purpose is to
profile an Alfresco installation.
Firstly, I have copied shiftone-jrat.jar into C:\alfresco-enterprise-tomcat
and modified catalina.bat to use JRat:
%_EXECJAVA% *-javaagent:shiftone-jrat.jar
-Djrat.factory=org.shiftone.jrat.provider.tree.TreeMethodHandlerFactory
*%JAVA_OPTS%
%CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%"
-classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%"
-Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%"
%MAINCLASS% %CMD_LINE_ARGS% %ACTION%
After first execution, JRat have created jrat.xml file automatically.
Then, I have commented include tag and modified it to include two packages
(and subpackages)
<!--
<include/>
-->
<include className="org.corporation.*" methodName="*"
signature="*"/>
<include className="org.alfresco.*" methodName="*"
signature="*"/>
Later, I have started Alfresco-Tomcat, I have executed some queries on
Alfresco.
Finally I have stopped Alfresco and examined the generated my_code_tree.jrat
file with the console.
The problem is that JRat Desktop don’t show my any information. I have
looked into “Summary”, “Trace” and “Hierarchy” tags; and all the three the
tags are empty.
What am I doing wrong?
Thanks in advance.
Virilo.
|