安裝法一:
# easy_install -U clonedigger
安裝法二:
$ svn co https://clonedigger.svn.sourceforge.net/svnroot/clonedigger/trunk clonedigger$ cd clonedigger# python setup.py install
使用法:
$ cd MyProj
$ clonedigger .
Parsing ./wx_tools.py ... done
Parsing ./main.py ... done
Parsing ./nt_api.py ... done
19 sequences
average sequence length: 4.842105
maximum sequence length: 14
Number of statements: 92
Calculating size for each statement... done
Building statement hash... done
Number of different hash values: 49
Building patterns... 58 patterns were discovered
Choosing pattern for each statement... done
Finding similar sequences of statements... 3 sequences were found
Refining candidates... 2 clones were found
Removing dominated clones... -1 clones were removed
$ firefox output.html # 觀看報表
可與 eclipse 和 Jenkins 整合, 待續 ..
沒有留言:
張貼留言