Code Complexity Report

Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/launch/system_monitor.launch.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
launch_setup 1 88 451 3
generate_launch_description 1 37 169 0
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/src/net_monitor/nl80211.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
NL80211::NL80211 1 1 35 0
callback 7 34 232 2
NL80211::init 6 28 128 0
NL80211::getBitrate 8 41 196 1
NL80211::shutdown 2 9 32 0
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/src/net_monitor/net_monitor.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
NetMonitor::NetMonitor 1 13 123 1
NetMonitor::~NetMonitor 1 1 11 0
NetMonitor::update 1 1 13 0
NetMonitor::shutdown_nl80211 1 1 13 0
NetMonitor::checkUsage 22 134 1178 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/src/mem_monitor/mem_monitor.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
MemMonitor::MemMonitor 1 10 86 1
MemMonitor::update 1 1 13 0
MemMonitor::checkUsage 9 47 476 1
MemMonitor::toHumanReadable 4 12 101 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/src/gpu_monitor/nvml_gpu_monitor.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
GPUMonitor::GPUMonitor 7 40 250 1
GPUMonitor::shut_down 2 7 38 0
GPUMonitor::checkTemp 6 31 284 1
GPUMonitor::checkUsage 6 36 374 1
GPUMonitor::addProcessUsage 12 70 530 3
GPUMonitor::checkMemoryUsage 6 40 427 1
GPUMonitor::checkThrottling 10 57 496 1
GPUMonitor::toHumanReadable 4 12 90 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/src/gpu_monitor/unknown_gpu_monitor.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
GPUMonitor::GPUMonitor 1 3 20 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/src/gpu_monitor/tegra_gpu_monitor.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
GPUMonitor::GPUMonitor 1 8 46 1
GPUMonitor::checkTemp 7 34 241 1
GPUMonitor::checkUsage 7 34 243 1
GPUMonitor::checkThrottling 1 3 12 1
GPUMonitor::checkFrequency 5 19 139 1
GPUMonitor::getTempNames 2 8 49 0
GPUMonitor::getLoadNames 4 17 133 0
GPUMonitor::getFreqNames 3 12 90 0
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/src/gpu_monitor/gpu_monitor_base.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
GPUMonitorBase::GPUMonitorBase 1 19 214 2
GPUMonitorBase::update 1 1 13 0
GPUMonitorBase::shut_down 1 3 7 0
GPUMonitorBase::checkTemp 1 4 20 1
GPUMonitorBase::checkUsage 1 4 20 1
GPUMonitorBase::checkMemoryUsage 1 4 20 1
GPUMonitorBase::checkThrottling 1 4 20 1
GPUMonitorBase::checkFrequency 1 4 20 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/src/cpu_monitor/cpu_monitor_base.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
CPUMonitorBase::CPUMonitorBase 2 25 250 2
CPUMonitorBase::update 1 1 13 0
CPUMonitorBase::checkTemp 7 35 267 1
CPUMonitorBase::checkUsage 16 85 728 1
CPUMonitorBase::checkLoad 4 30 264 1
CPUMonitorBase::checkThrottling 1 5 28 1
CPUMonitorBase::checkFrequency 5 21 171 1
CPUMonitorBase::getTempNames 1 4 18 0
CPUMonitorBase::getFreqNames 4 23 192 0
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/src/cpu_monitor/unknown_cpu_monitor.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
CPUMonitor::CPUMonitor 1 3 20 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/src/cpu_monitor/arm_cpu_monitor.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
CPUMonitor::CPUMonitor 1 3 20 1
CPUMonitor::checkThrottling 1 3 12 1
CPUMonitor::getTempNames 2 8 62 0
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/src/cpu_monitor/raspi_cpu_monitor.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
CPUMonitor::CPUMonitor 1 4 27 2
CPUMonitor::checkThrottling 5 28 200 1
CPUMonitor::getTempNames 2 8 62 0
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/src/cpu_monitor/intel_cpu_monitor.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
CPUMonitor::CPUMonitor 1 6 44 1
CPUMonitor::checkThrottling 11 82 610 1
CPUMonitor::getTempNames 9 45 351 0
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/src/cpu_monitor/tegra_cpu_monitor.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
CPUMonitor::CPUMonitor 1 4 27 1
CPUMonitor::checkThrottling 1 1 12 1
CPUMonitor::getTempNames 2 8 62 0
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/src/hdd_monitor/hdd_monitor.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
HDDMonitor::HDDMonitor 1 11 87 1
HDDMonitor::update 1 1 13 0
HDDMonitor::checkTemp 16 117 1007 1
HDDMonitor::checkUsage 10 62 616 1
HDDMonitor::getHDDParams 2 15 138 0
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/src/process_monitor/process_monitor.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
ProcessMonitor::ProcessMonitor 3 20 172 1
ProcessMonitor::update 1 1 13 0
ProcessMonitor::monitorProcesses 2 24 207 1
ProcessMonitor::getTasksSummary 4 44 345 2
ProcessMonitor::removeHeader 4 41 292 2
ProcessMonitor::getHighLoadProcesses 2 15 118 1
ProcessMonitor::getHighMemoryProcesses 3 29 212 1
ProcessMonitor::getTopratedProcesses 6 40 402 2
ProcessMonitor::setErrorContent 3 12 101 4
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/src/ntp_monitor/ntp_monitor.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
NTPMonitor::NTPMonitor 2 12 112 1
NTPMonitor::update 1 1 13 0
NTPMonitor::checkOffset 6 31 225 1
NTPMonitor::executeChronyc 7 34 278 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/reader/msr_reader/msr_reader.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
usage 1 7 25 0
run 13 82 592 2
main 13 68 493 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/reader/hdd_reader/hdd_reader.cpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
usage 1 7 25 0
swap_char 2 6 45 2
get_ata_identify 2 34 248 2
get_ata_SMARTData 4 33 216 2
get_nvme_identify 2 22 153 2
get_nvme_SMARTData 2 17 122 2
run 21 131 875 1
main 6 35 202 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/net_monitor/net_monitor.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
bytes::bytes 1 1 15 0
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/net_monitor/nl80211.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/mem_monitor/mem_monitor.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/gpu_monitor/gpu_monitor_base.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/gpu_monitor/unknown_gpu_monitor.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/gpu_monitor/nvml_gpu_monitor.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/gpu_monitor/tegra_gpu_monitor.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
gpu_info::gpu_info 1 1 13 0
gpu_info::gpu_info 1 1 28 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/cpu_monitor/cpu_monitor_base.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
cpu_temp_info::cpu_temp_info 1 1 13 0
cpu_temp_info::cpu_temp_info 1 1 28 2
cpu_freq_info::cpu_freq_info 1 1 14 0
cpu_freq_info::cpu_freq_info 1 1 24 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/cpu_monitor/unknown_cpu_monitor.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/cpu_monitor/arm_cpu_monitor.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/cpu_monitor/tegra_cpu_monitor.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/cpu_monitor/raspi_cpu_monitor.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/cpu_monitor/intel_cpu_monitor.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/hdd_monitor/hdd_monitor.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
HDDParam::HDDParam 1 1 33 0
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/process_monitor/diag_task.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
DiagTask::DiagTask 1 1 16 1
DiagTask::run 2 21 158 1
DiagTask::setDiagnosticsStatus 1 5 22 2
DiagTask::setErrorContent 1 5 26 2
DiagTask::setProcessId 1 1 15 1
DiagTask::setUserName 1 1 15 1
DiagTask::setPriority 1 1 15 1
DiagTask::setNiceValue 1 1 15 1
DiagTask::setVirtualImage 1 1 15 1
DiagTask::setResidentSize 1 1 15 1
DiagTask::setSharedMemSize 1 1 15 1
DiagTask::setProcessStatus 1 1 15 1
DiagTask::setCPUUsage 1 1 15 1
DiagTask::setMemoryUsage 1 1 15 1
DiagTask::setCPUTime 1 1 15 1
DiagTask::setCommandName 1 1 15 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/process_monitor/process_monitor.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/ntp_monitor/ntp_monitor.hpp
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/system_monitor/system_monitor_utility.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
thermal_zone::thermal_zone 1 1 17 0
thermal_zone::thermal_zone 1 4 40 3
SystemMonitorUtility::getThermalZone 8 34 237 2
SystemMonitorUtility::startMeasurement 1 4 16 0
SystemMonitorUtility::stopMeasurement 1 8 72 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/msr_reader/msr_reader.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
MSRInfo::serialize 1 5 19 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/src/tier4/autoware.iv/system/system_monitor/include/hdd_reader/hdd_reader.hpp
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
HDDInfo::serialize 1 7 27 2