隨筆 - 41  文章 - 29  trackbacks - 0
          <2009年3月>
          22232425262728
          1234567
          891011121314
          15161718192021
          22232425262728
          2930311234

          常用鏈接

          留言簿(5)

          隨筆分類(28)

          隨筆檔案(23)

          收藏夾(6)

          Inside JVM

          Java

          java performance

          Solr

          搜索

          •  

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          In last technique meeting, many people show the interest on can we use some automation tools to improve development/testing productivity. Starting from this message, we will introduce some interesting tools to show how can we use them to facilitate our daily work.

          Background and Goals

          Recently, many managers and technique leaders all notice that a formal design phase has been ignored by our daily work for pretty long time. On the one hand, none of us likes heavy process which means very long design document and a lot paper work. On the another hand, no any design document (or no formal design phase) actually caused bad design and low quality codes because we don’t really think about the design before implementation.

          So, we are trying to find light-wight ways to generate simple design document easily and communicate with others freely.

          As we all know, UML sequence is one important URL diagram which can easily describe the detailed process of any operation. However, drawing a sequence diagram manually is a very time-consuming work. In terms of this, JTracert can be the very helpful tool to generate sequence diagram at runtime.

          Overview of JTracert

          It will generate sequence diagrams directly from your application runtime. you can get it from http://code.google.com/p/jtracert/.
          Some advantages:

          • Understand the code created by your colleagues/partners in a short time
          • Rapidly generate documentation for your partners or users.
          • Easily investigate what’s happening in large Java applications
          • Excellent companion for a common debugger

          Detailed Usage

          It is very easy to use. JTracert has two jars:

          • jTracert.jar is a small javaagent to profile your application
          • jTracert-gui.jar is a simple GUI application to display runtime sequence diagram

          The following is a simple introduction:

          1. Based on your J2EE container, add this line into bat file
            set JAVA_OPTIONS=%JAVA_OPTIONS% -DanalyzerOutput=sdEditRtClient -DsdEditHost=127.0.0.1 -DsdEditPort=60001 -javaagent:jTracert.jar=7007







          2. Start container, when you see the following line –
            jTracert agent started Waiting for a connection from jTracert GUI on port 7007
          3. double click jTracert-gui.jar and connect to server as following -
            • Working folder (in which diagram files will be stored)
            • Host & port of jTracert agent
            • A regular expression for filtering classes to be instrumented and analyzed
          4. That’s it. You can see the sequence diagram on jTracert GUI application.

          Attached is an example diagram from one application.


          Any issue, please let me know.

          posted on 2009-03-11 22:42 Justin Chen 閱讀(1761) 評(píng)論(0)  編輯  收藏 所屬分類: Tools
          主站蜘蛛池模板: 乌什县| 彭州市| 福鼎市| 云林县| 冷水江市| 张家川| 桐城市| 商河县| 伊川县| 孟津县| 临颍县| 建湖县| 五大连池市| 元阳县| 宜州市| 敦化市| 朔州市| 陇川县| 霍邱县| 肥乡县| 永福县| 花莲县| 获嘉县| 和政县| 丹东市| 麻城市| 镇原县| 红桥区| 通榆县| 博白县| 宁南县| 恭城| 镇宁| 永登县| 天祝| 日喀则市| 景洪市| 华安县| 勃利县| 阿瓦提县| 金塔县|