码迷,mamicode.com
首页 > 其他好文 > 详细

Source Monitor Tutorial

时间:2015-05-22 00:07:19      阅读:2132      评论:0      收藏:0      [点我收藏+]

标签:

Source Monitor is a code analyzing tool that is capable of finding the complexity for Java, C++、C、C#、Delphi、Visual Basic and HTML source codes. It‘s a standalone software which does not rely upon any specific IDE to work. What‘s even better is that it is a Free Software. In this tutorial I‘ll show you how to install and use this convenient tool analyze some code.

 

1. Download Source Monitor from http://www.campwoodsw.com/sourcemonitor.html. Run the setup wizard.

技术分享

 

2. Click "Next" to install. Choose the installaion path, etc. Nothing unusual.

 

3. Open the installed software. In the welcome screen, click "Start SourceMonitor" to begin.

 

4. Before proceeding to analyze some code. Let‘s open the settings page and tick "allow parsing of UTF-8 files" as some of the source code files may be stored in UTF-8 format.

技术分享

 

5. Click "New..." to begin analyze the code. In Step1, we select the language of the code. Here "Java" is chosen as we‘re going to analyze a Java project.

技术分享

 

6. In Source Monitor, each analysis is seen as a "Project". In this step, we choose where to save the data files of this analysis.

技术分享

 

7. In Step 3, select the path of your source files.

技术分享

 

8. In Step 4, specify some options for this analysis. Here we choose to ignore any blank lines in the source code.

技术分享

 

9. In the following step, choose the desired format to save the analysis project file.

技术分享

 

10. Name the Project Checkpoint. Here we keep the default name, which is "Baseline".

技术分享

 

11. In the final step, review a summary of the project settings. If it‘s OK, click "Finish" to start the actual analysis process.

技术分享

 

12. Then it will ask you to choose which files to analyze. By default, it will automatically pick out all the files whose extension matches the language that we‘ve selected in Step 1. In this tutorial, as we‘ve selected "Java" in the first step, all .java files are selected automatically. Click "OK" to proceed.

技术分享

 

13. A moment later, the job will finish and shows a general report the whole project.

技术分享

 

14. Double click it will bring you to a new screen where the detailed reports of each file are shown.

技术分享

 

This brings the tutorial to an end. If you‘re interested in more information about Source Monitor, you can visit its official website http://www.campwoodsw.com/sourcemonitor.html

 

Your feedbacks and suggestions are greatly appreciated.

 

Source Monitor Tutorial

标签:

原文地址:http://www.cnblogs.com/tuhz/p/4521149.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!