首页 > 其他分享 >什么是Cyclomatic Complexity(圈复杂度)?

什么是Cyclomatic Complexity(圈复杂度)?

时间:2023-01-04 21:02:03浏览次数:48  
标签:files code Cyclomatic 复杂度 metrics source Complexity your SourceMonitor

 

Campwood Software

 


SourceMonitor Version 3.5

The freeware program SourceMonitor lets you see inside your software source code to find out how much code you have and to identify the relative complexity of your modules. For example, you can use SourceMonitor to identify the code that is most likely to contain defects and thus warrants formal review. SourceMonitor, written in C++, runs through your code at high speed, typically more than 10,000 lines of code per second. SourceMonitor provides the following:

  • Collects metrics in a fast, single pass through source files.
  • Measures metrics for source code written in C++, C, C#, VB.NET, Java, Delphi, Visual Basic (VB6) or HTML.
  • Includes method and function level metrics for C++, C, C#, VB.NET, Java, and Delphi.
  • Offers Modified Complexity metric option.
  • Saves metrics in checkpoints for comparison during software development projects.
  • Displays and prints metrics in tables and charts, including Kiviat diagrams.
  • Operates within a standard Windows GUI or inside your scripts using XML command files.
  • Exports metrics to XML or CSV (comma-separated-value) files for further processing with other tools.

Enhancements added in Version 3.5 are described below. Like all previous versions, this version of SourceMonitor is free ​​[view license]​​. The download is a fully functional installer contained in a single file, SMSetupV346.exe. Please download the installation file and give it a try:

Download SourceMonitor V3.5.0.306 (2.47 MBytes):   ​​via HTTP​​. Run the downloaded file (SMSetupV350.exe) to install SourceMonitor.

 

 

​http://www.campwoodsw.com/sourcemonitor.html​

 




标签:files,code,Cyclomatic,复杂度,metrics,source,Complexity,your,SourceMonitor
From: https://blog.51cto.com/u_15147537/5989244

相关文章

  • [NOIP2017 提高组] 时间复杂度
    [NOIP2017提高组]时间复杂度题目背景NOIP2017提高组D1T2题目描述小明正在学习一种新的编程语言A++,刚学会循环语句的他激动地写了好多程序并给出了他自己算出的时......
  • 数据结构 玩转数据结构 7-8 映射的复杂度分析和更多映射相关问题
    0课程地址https://coding.imooc.com/lesson/207.html#mid=13710 1重点关注1.1结论使用二叉树实现集合Set性能优于使用链表实现集合Set. ......
  • 01-复杂度(complexity)
    什么是算法?算法是用于解决特定问题的一系列的执行步骤。如何判断一个算法的好坏?正确性、可读性、健壮性(对不合理输入的反应能力和处理能力)时间复杂度(timecomplex......
  • 算法的时间、空间复杂度如何比较?
    一、时间复杂度BigO首先我们不能以机器运行算法的时间来评判一个算法的时间复杂度,因为即使是相同的算法在不同机器上(机器的个体差异性)运行时间都可能不尽相同,因此我们采用【......
  • computational complexity笔记
    thecomputationalmodel最初的目标是构造一个计算的模型。这个模型可以看作一个集合,这个集合中的每个元素相当于某一个具体问题的解决方案,也就是一个“程序”;这个集合整......
  • 时间复杂度
    预先知道算法的复杂度是一回事,了解其后的原理是另一件事情。不管你是计算机科班出身还是想有效解决最优化问题,如果想要用自己的知识解决实际问题,你都必须理解时间复杂度。先......
  • 邻接矩阵和邻接表存储的时间复杂度
    用邻接矩阵构造图时,若存储的是一个无向图,则时间复杂度为O(n^2+n*e),其中,对邻接矩阵的初始化耗费的时间为O(n^2);对于DFS,BFS遍历来说,时间复杂度和存储结构有关:n表示有n......
  • 数据结构 玩转数据结构 7-3 集合类的复杂度分析
    0课程地址https://coding.imooc.com/lesson/207.html#mid=13705 1重点关注1.1结论使用二叉树实现集合Set性能优于使用链表实现集合Set. ......
  • 递归树求取递归的时间复杂度
    ......
  • codeforces 596 div2 p-binary(数位复杂度压缩)
    题目大意:已知: 同时  ,问k最少为多少。解题思路:首先,我们看到这里有2的n次方,我们考虑能不能从二进制表示下手,我们通过移位来表示:得到公式 ,很直接的想法是我们让k从小到大......