microsoft / appcenter-sdk-android-breakpad
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 2,253 units with 42,309 lines of code in units (40.1% of code).
    • 7 very complex units (8,685 lines of code)
    • 20 complex units (2,653 lines of code)
    • 124 medium complex units (7,755 lines of code)
    • 224 simple units (7,320 lines of code)
    • 1,878 very simple units (15,896 lines of code)
20% | 6% | 18% | 17% | 37%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
cc23% | 6% | 19% | 16% | 34%
mm0% | 9% | 10% | 29% | 51%
h0% | 4% | 4% | 14% | 76%
c0% | 0% | 84% | 12% | 2%
m0% | 0% | 35% | 0% | 64%
go0% | 0% | 0% | 50% | 49%
py0% | 0% | 0% | 34% | 65%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/processor46% | 6% | 14% | 12% | 21%
src/common/dwarf7% | 10% | 23% | 19% | 40%
src/client/mac0% | 11% | 18% | 22% | 46%
src/common/windows0% | 17% | 30% | 27% | 23%
src/common/linux0% | 9% | 11% | 17% | 61%
src/client/linux0% | 3% | 30% | 15% | 49%
src/client/windows0% | 6% | 11% | 23% | 58%
src/common0% | 3% | 20% | 15% | 60%
src/common/mac0% | 0% | 27% | 19% | 53%
src/tools/mac0% | 0% | 23% | 41% | 34%
src/common/solaris0% | 0% | 26% | 47% | 26%
src/client/ios0% | 0% | 19% | 17% | 63%
src/tools/windows0% | 0% | 21% | 21% | 56%
src/client/solaris0% | 0% | 7% | 27% | 64%
src/tools/linux0% | 0% | 35% | 0% | 64%
src/client0% | 0% | 0% | 25% | 74%
src/tools/python0% | 0% | 0% | 34% | 65%
src/google_breakpad/processor0% | 0% | 0% | 21% | 78%
src/common/android0% | 0% | 0% | 0% | 100%
src/tools/solaris0% | 0% | 0% | 0% | 100%
src/google_breakpad/common0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
string NTStatusToString()
in src/processor/symbolic_constants_win.cc
6357 2116 1
string MinidumpProcessor::GetCrashReason()
in src/processor/minidump_processor.cc
925 255 2
static void PrintStack()
in src/processor/stackwalk_common.cc
342 107 6
bool MinidumpContext::Read()
in src/processor/minidump.cc
552 89 1
bool CallFrameInfo::State::DoInstruction()
in src/common/dwarf/dwarf2reader.cc
201 84 0
uint32_t DisassemblerX86::NextInstruction()
in src/processor/disassembler_x86.cc
134 77 0
174 61 0
int __breakpad_fdnlist()
in src/client/mac/handler/breakpad_nlist_64.cc
186 49 4
void DwarfCUToModule::AssignLinesToFunctions()
in src/common/dwarf_cu_to_module.cc
94 39 0
ProcessResult MinidumpProcessor::Process()
in src/processor/minidump_processor.cc
171 39 2
bool Breakpad::ExtractParameters()
in src/client/mac/Framework/Breakpad.mm
168 38 1
bool ExploitabilityLinux::CalculateAddress()
in src/processor/exploitability_linux.cc
96 34 3
bool MinidumpGenerator::WriteMinidump()
in src/client/windows/crash_generation/minidump_generator.cc
118 31 0
bool CallFrameInfo::ReadCIEFields()
in src/common/dwarf/dwarf2reader.cc
132 30 1
bool LineInfo::ProcessOneOpcode()
in src/common/dwarf/dwarf2reader.cc
149 29 8
bool ExploitabilityLinux::BenignCrashTrigger()
in src/processor/exploitability_linux.cc
38 29 1
bool PDBSourceLineWriter::PrintFunctions()
in src/common/windows/pdb_source_line_writer.cc
92 28 0
static bool RetrieveTest()
in src/processor/range_map_unittest.cc
102 28 2
bool WriteCPUInformation()
in src/client/linux/minidump_writer/minidump_writer.cc
155 27 1
bool PDBSourceLineWriter::PrintFrameDataUsingPDB()
in src/common/windows/pdb_source_line_writer.cc
106 27 0