Reference Manual For QP/C++ 8.1.6
Loading...
Searching...
No Matches
Software Metrics Report
This document is part of the SafeQP Certification Kit↑, which has been specifically designed to help companies in safety certification of their software based on the SafeQP Framework. This document applies to QP/C++ Framework as well.
Document Revisions
QP/C++
version
Document
revision
Date
(YYYY-MM-DD)
By Description
8.1.0 A 2025-09-01 MMS Created for QP/C++ 8.1.0.
8.1.4 B 2026-05-16 MMS Updated for QP/C++ 8.1.4.
8.1.5 C 2026-08-15 MMS Updated for QP/C++ 8.1.5.
8.1.6 D 2026-10-22 MMS Traceability according to the trace model (fsm-qp_tr-model).

About This Document


[SMR_QP]

Software Metrics Report

Description

This Software Metrics Report, formally identified as [SMR_QP], presents a comprehensive analysis of software metrics collected from the QP/C++ Framework by the PC-Lint-Plus static analysis tool ([PCLP-25]), evaluated under the Hersteller Initiative Software (HIS)↑ standard and aligned with [IEC 61508] as well as [ISO 26262] functional safety requirements. The metrics serve as quantitative indicators of code quality, structural complexity, and maintainability, critical factors in ensuring the reliability and certifiability of embedded software components. Software metrics play a pivotal role in:

  • Design Assurance
    • Metrics validate that software is structured and modular.
    • They help enforce design principles like low coupling and high cohesion.
  • Verification & Testing
    • Complexity metrics guide test coverage strategies.
    • High cyclomatic complexity values imply that more rigorous testing is needed.
  • Certification Evidence
    • Metrics provide objective, repeatable artifacts for audits.
    • They support traceability from safety requirements to implementation.
  • Maintainability & Risk Control
    • Metrics like comment density and interface complexity help assess how easily code can be understood and modified.

Scope

By applying static analysis tools such as PC-Lint-Plus, the report assesses key attributes including cyclomatic complexity, function size, nesting depth, and interface coupling. These metrics not only support internal quality assurance but also provide traceable evidence for regulatory audits and SIL-level justification. The thresholds adopted reflect industry best practices and regulatory expectations, enabling proactive identification of architectural hotspots and guiding targeted refactoring efforts.

Backward Traceability

  • [FSM_QP_SDLC_05] Step-5: Coding, Static Analysis, and Code Review

Regulatory Background

From the regulatory perspective, software metrics are not just engineering convenience; they are evidence artifacts that support systematic capability claims, compliance, and risk reduction across the software safety lifecycle. They flag hotspots that may introduce regression risks. The Hersteller Initiative Software (HIS) source code quality metrics ([EMENDA-HIS], [EXIDA-METRICS]) demonstrated in this QP/C++ Software Metrics Report provide evidence that QP/C++ software component meets the modularity guidelines specified in the Modular Approach Design Viewpoint, Table SDS-B9 and Table SDS-T1.

Generating HIS Metrics with PCLP

The PC-Lint-Plus v2025 ([PCLP-25]) static analysis tool can generate a very comprehensive set of code metrics, far exceeding the HIS Standard. This section outlines how the HIS Metrics are interpreted and generated from the PCLP metrics data (see [PCLP-25] Section 10.6 'Built-in Metrics' and 10.6.5 'Function').

HIS Metric PCLP Metrics Description (from PCLP Manual)
v(G) cyclomatic_complexity The McCabe cyclomatic complexity of a function.
PATH cyclomatic_complexity * log2(halstead_vocabulary) Where: cyclomatic_complexity is the cyclomatic complexity (v(G)) and halstead_vocabulary is the Halstead vocabulary (N), both measured by PCLP.
STMT num_stmts The number of statements within a function. Every statement within the body of any compound statement is counted.
LEVEL avg_scope_nesting_depth The average nesting depth of compound statements enclosing each statement in a function. That is, the sum for each integral nesting level of the product of that nesting level and the number of statements with that nesting level, divided by the number of statements.
CALLS num_called_functions The number of distinct functions defined within the analyzed project called by this function. Each function called at least once is only counted once, regardless of how many different calls to it appear within the body of this function. This metric does not count called functions that exist only as declarations that are never defined anywhere within the analyzed project.
PARAM num_parameters The number of parameters for a function. In C, the explicit me instance parameter is counted, but in C++ the implicit this instance parameter is not counted. Also, in C++, parameters with default arguments are counted.
RETURN num_return_stmts The number of return statements within a function. The implicit return at the end of main or a function defined as returning void (or a catch clause of a function-try-block thereof) is not included.
GOTO num_backward_goto_stmts + num_forward_goto_stmts Calculated sum of: The number of backward goto statements plus the number of forward goto statements within a function.
COMF num_comment_lines /
num_code_lines
Calculated ratio of: The number of comment lines to the number of code lines in a lexical function definition.
NOMV see misra-qp The number of HIS subset violations after applying the provided Deviation Permits and Deviation Records.
NOMVPR see misra-qp The number of MISRA violations per rule after applying the provided Deviation Permits and Deviation Records.

Function Metrics

This section contains the function metrics measured by the PC-Lint-Plus (v2025) static analysis tool. The metrics were collected under the conditions typically applied for the Release build configuration. Specifically, the QP Functional Safety (FuSa) Subsystem is enabled, but the QP/Spy software tracing is disabled (except for analysis of the QS target-resident QP/Spy component).


[SMR_QP_FUNC]

QP/C++ function metrics report.

v(G) PATH STMT LEVEL CALLS PARAM RETURN GOTO COMF Function @ <file>
(<=16) (<99) (<=55) (<=4) (<=7) (<=7) (<=1) (==0) (>=0.2)
-------------------------------------------------------------------------------
1 4 1 1 0 1 1 0 1.3 QP::dis_update @ include/qp_pkg.hpp:91:4
1 4 1 1 0 2 1 0 0.7 QP::dis_verify @ include/qp_pkg.hpp:100:6
1 4 1 1 0 2 1 0 0.0 QP::QTE_flagClr @ include/qp_pkg.hpp:63:21
1 4 1 1 0 2 1 0 0.0 QP::QTE_flagSet @ include/qp_pkg.hpp:57:21
1 4 1 1 0 2 1 0 0.0 QP::QTE_flagIsSet @ include/qp_pkg.hpp:51:13
2 8 3 1 1 1 0 0 0.6 QP::QEvt_refCtr_dec_ @ src/qf/qf_act.cpp:68:6
2 8 3 1 1 1 0 0 0.8 QP::QEvt_refCtr_inc_ @ src/qf/qf_act.cpp:57:6
2 11 6 1 4 1 0 0 0.3 QP::QF::deleteRef_ @ src/qf/qf_dyn.cpp:364:6
4 21 8 1 4 1 1 0 0.2 QP::QF::getPoolMin @ src/qf/qf_dyn.cpp:170:15
5 28 12 1 4 1 1 0 0.3 QP::QF::getPoolUse @ src/qf/qf_dyn.cpp:108:15
4 21 8 1 4 1 1 0 0.2 QP::QF::getPoolFree @ src/qf/qf_dyn.cpp:146:15
1 4 1 1 1 1 1 0 0.2 QP::QF::getQueueMin @ include/qp.hpp:767:27
1 4 2 1 1 1 0 0 0.2 QP::QF::q_delete_ref @ include/qp.hpp:887:13
3 15 7 1 4 0 1 0 0.2 QP::QF::poolGetMaxBlockSize @ src/qf/qf_dyn.cpp:88:15
8 47 22 3 5 1 0 0 0.3 QP::QF::gc @ src/qf/qf_dyn.cpp:267:6
1 2 1 1 1 0 0 0 0.0 QP::QF::init @ include/qp.hpp:469:17
1 4 1 1 1 2 0 0 0.2 QP::QF::tick @ include/qp.hpp:776:13
10 61 31 2 5 3 1 0 0.5 QP::QF::newX_ @ src/qf/qf_dyn.cpp:193:8
1 4 1 1 1 1 1 0 0.5 QP::QF::q_new @ include/qp.hpp:815:20
1 4 1 1 1 2 0 0 0.2 QP::QF::psInit @ include/qp.hpp:751:13
6 34 15 1 4 2 1 0 0.4 QP::QF::newRef_ @ src/qf/qf_dyn.cpp:322:14
1 4 1 1 1 2 1 0 0.4 QP::QF::q_new_x @ include/qp.hpp:822:20
4 22 9 1 5 3 0 0 0.5 QP::QF::poolInit @ src/qf/qf_dyn.cpp:51:6
1 4 1 1 0 2 1 0 0.1 QP::QF::prioSpec @ src/qf/qf_qact.cpp:54:11
1 4 1 1 1 3 0 0 0.2 QP::QF::publish_ @ include/qp.hpp:759:13
1 4 1 1 1 2 0 0 0.2 QP::QF::q_new_ref @ include/qp.hpp:878:13
1 3 1 1 0 0 1 0 0.5 QP::QAsm::QM_HANDLED @ include/qp.hpp:196:29
1 3 1 1 0 0 1 0 0.5 QP::QAsm::Q_UNHANDLED @ include/qp.hpp:194:29
1 3 1 1 0 0 1 0 0.5 QP::QAsm::QM_UNHANDLED @ include/qp.hpp:198:29
1 5 3 1 0 2 1 0 0.2 QP::QAsm::qm_tran_hist @ include/qp.hpp:259:12
1 4 2 1 0 1 1 0 0.2 QP::QAsm::qm_tran_init @ include/qp.hpp:254:12
1 4 3 1 0 2 1 0 0.2 QP::QAsm::top @ src/qf/qf_act.cpp:84:14
2 7 1 1 1 1 0 0 0.3 QP::QAsm::init @ src/qf/qf_act.cpp:90:12
1 4 2 1 0 1 1 0 0.2 QP::QAsm::tran @ include/qp.hpp:234:12
1 4 2 1 0 1 1 0 0.2 QP::QAsm::super @ include/qp.hpp:244:12
1 4 2 1 0 1 1 0 0.2 QP::QAsm::qm_exit @ include/qp.hpp:274:12
1 4 2 1 0 1 1 0 0.2 QP::QAsm::qm_tran @ include/qp.hpp:249:12
1 3 1 1 0 0 1 0 0.5 QP::QAsm::QM_SUPER @ include/qp.hpp:200:29
1 4 2 1 0 1 1 0 0.2 QP::QAsm::qm_entry @ include/qp.hpp:268:12
1 3 1 1 0 0 1 0 0.5 QP::QAsm::Q_HANDLED @ include/qp.hpp:192:29
1 4 2 1 0 1 1 0 0.2 QP::QAsm::tran_hist @ include/qp.hpp:239:12
1 3 0 0 0 0 0 0 0.2 QP::QAsm::QAsm @ src/qf/qf_act.cpp:79:7
1 4 0 0 0 1 0 0 0.8 QP::QEvt::QEvt @ include/qp.hpp:105:24
1 2 0 0 0 0 0 0 0.5 QP::QEvt::QEvt @ include/qp.hpp:113:5
4 21 15 2 2 1 1 0 0.5 QP::QHsm::childState @ src/qf/qep_hsm.cpp:574:21
10 58 28 3 2 2 1 0 0.5 QP::QHsm::tran_simple_ @ src/qf/qep_hsm.cpp:328:19
11 67 35 3 2 3 0 0 0.5 QP::QHsm::enter_target_ @ src/qf/qep_hsm.cpp:479:12
13 76 44 3 2 2 1 0 0.6 QP::QHsm::tran_complex_ @ src/qf/qep_hsm.cpp:395:19
8 51 38 2 4 2 0 0 0.6 QP::QHsm::init @ src/qf/qep_hsm.cpp:150:12
4 22 15 2 4 1 1 0 0.5 QP::QHsm::isIn @ src/qf/qep_hsm.cpp:544:12
15 98 55 2 7 2 0 0 0.6 QP::QHsm::dispatch @ src/qf/qep_hsm.cpp:225:12
1 4 2 1 0 1 0 0 0.3 QP::QHsm::QHsm @ src/qf/qep_hsm.cpp:142:7
6 35 19 2 2 2 1 0 0.3 QP::QMsm::execTatbl_ @ src/qf/qep_msm.cpp:274:14
1 3 1 1 0 0 1 0 0.3 QP::QMsm::topQMState @ src/qf/qep_msm.cpp:384:23
6 35 23 2 2 2 1 0 0.3 QP::QMsm::enterHistory_ @ src/qf/qep_msm.cpp:340:14
3 16 7 2 0 3 0 0 0.4 QP::QMsm::exitToTranSource_ @ src/qf/qep_msm.cpp:314:12
6 35 24 2 4 2 0 0 0.3 QP::QMsm::init @ src/qf/qep_msm.cpp:133:12
4 21 12 2 3 1 1 0 0.4 QP::QMsm::isIn @ src/qf/qep_msm.cpp:389:12
11 71 41 2 7 2 0 0 0.3 QP::QMsm::dispatch @ src/qf/qep_msm.cpp:177:12
1 4 2 1 0 1 0 0 0.3 QP::QMsm::QMsm @ src/qf/qep_msm.cpp:125:7
1 5 1 1 0 1 0 0 0.2 QP::QPSet::insert @ src/qf/qf_qact.cpp:255:13
1 5 1 1 0 1 0 0 0.2 QP::QPSet::remove @ src/qf/qf_qact.cpp:272:13
1 4 1 1 0 0 0 0 0.3 QP::QPSet::setEmpty @ src/qf/qf_qact.cpp:215:13
1 4 0 0 0 0 0 0 0.0 QP::QPSet::QPSet @ include/qp.hpp:435:15
11 66 34 2 3 2 1 0 0.6 QP::QMPool::get @ src/qf/qf_mem.cpp:136:16
7 41 20 1 3 2 0 0 0.5 QP::QMPool::put @ src/qf/qf_mem.cpp:215:14
7 43 27 1 3 3 0 0 0.4 QP::QMPool::init @ src/qf/qf_mem.cpp:58:14
1 4 0 0 0 0 0 0 0.8 QP::QMPool::QMPool @ src/qf/qf_mem.cpp:48:9
1 4 1 1 1 1 1 0 0.3 QP::QActive::childState @ src/qf/qf_qact.cpp:168:24
6 34 20 2 7 3 0 0 0.5 QP::QActive::multicast_ @ src/qf/qf_ps.cpp:132:15
4 21 8 1 3 1 1 0 0.3 QP::QActive::getQueueMin @ src/qf/qf_actq.cpp:349:24
6 32 14 2 4 1 1 0 0.3 QP::QActive::getQueueUse @ src/qf/qf_actq.cpp:295:24
4 20 8 1 3 0 0 0 0.5 QP::QActive::unregister_ @ src/qf/qf_qact.cpp:129:15
4 21 8 1 3 1 1 0 0.2 QP::QActive::getQueueFree @ src/qf/qf_actq.cpp:330:24
8 47 32 2 3 0 1 0 0.6 QP::QActive::get_ @ src/qf/qf_actq.cpp:176:23
1 4 1 1 1 2 0 0 0.2 QP::QActive::init @ src/qf/qf_qact.cpp:147:15
1 4 1 1 1 1 1 0 0.3 QP::QActive::isIn @ src/qf/qf_qact.cpp:163:15
1 4 1 1 1 2 0 0 0.2 QP::QActive::post_ @ include/qp.hpp:527:10
7 43 24 2 6 3 1 0 0.5 QP::QActive::postx_ @ src/qf/qf_actq.cpp:49:15
4 20 9 1 4 2 0 0 0.3 QP::QActive::psInit @ src/qf/qf_ps.cpp:51:15
6 34 24 2 6 1 1 0 0.6 QP::QActive::recall @ src/qf/qf_defer.cpp:81:15
1 4 1 1 1 2 0 0 0.2 QP::QActive::dispatch @ src/qf/qf_qact.cpp:155:15
8 49 30 2 5 1 0 0 0.6 QP::QActive::postLIFO @ src/qf/qf_actq.cpp:112:15
6 35 19 1 7 3 0 0 0.6 QP::QActive::publish_ @ src/qf/qf_ps.cpp:76:15
5 29 23 2 1 2 0 0 0.6 QP::QActive::postFIFO_ @ src/qf/qf_actq.cpp:240:15
13 73 21 2 3 0 0 0 0.3 QP::QActive::register_ @ src/qf/qf_qact.cpp:78:15
1 3 1 1 0 1 0 0 0.3 QP::QActive::setThread @ include/qp.hpp:574:10
1 4 2 1 0 1 0 0 0.4 QP::QActive::QActive @ src/qf/qf_qact.cpp:65:10
8 48 32 3 3 1 1 0 0.5 QP::QEQueue::get @ src/qf/qf_qeq.cpp:192:23
5 28 13 1 3 2 0 0 0.6 QP::QEQueue::init @ src/qf/qf_qeq.cpp:253:15
11 67 38 2 4 3 1 0 0.5 QP::QEQueue::post @ src/qf/qf_qeq.cpp:58:15
8 47 29 2 4 2 0 0 0.5 QP::QEQueue::postLIFO @ src/qf/qf_qeq.cpp:134:15
1 4 0 0 0 0 0 0 0.8 QP::QEQueue::QEQueue @ src/qf/qf_qeq.cpp:48:10
1 4 6 1 2 2 0 0 0.4 QP::QTicker::init @ src/qf/qf_actq.cpp:380:15
7 40 24 2 4 1 0 0 0.6 QP::QTicker::trig_ @ src/qf/qf_actq.cpp:428:15
3 15 11 1 4 2 0 0 0.3 QP::QTicker::dispatch @ src/qf/qf_actq.cpp:399:15
1 4 1 1 0 1 0 0 0.2 QP::QTicker::QTicker @ src/qf/qf_actq.cpp:372:10
1 3 1 1 0 0 1 0 0.3 QP::version @ src/qf/qf_act.cpp:52:13
1 4 1 1 1 2 0 0 0.2 QP::QMActive::init @ src/qf/qf_qmact.cpp:58:16
1 4 1 1 1 1 1 0 0.3 QP::QMActive::isIn @ src/qf/qf_qmact.cpp:74:16
1 4 1 1 1 2 0 0 0.2 QP::QMActive::dispatch @ src/qf/qf_qmact.cpp:66:16
1 4 2 1 1 1 0 0 0.5 QP::QMActive::QMActive @ src/qf/qf_qmact.cpp:48:11
1 4 7 1 5 0 1 0 0.3 QP::QTimeEvt::wasDisarmed @ src/qf/qf_time.cpp:270:16
8 50 24 1 7 2 0 0 0.6 QP::QTimeEvt::armX @ src/qf/qf_time.cpp:80:16
8 49 32 2 8 2 0 0 0.4 QP::QTimeEvt::tick @ src/qf/qf_time.cpp:288:16
8 50 26 2 7 1 1 0 0.6 QP::QTimeEvt::rearm @ src/qf/qf_time.cpp:196:16
5 29 23 2 4 0 1 0 0.4 QP::QTimeEvt::disarm @ src/qf/qf_time.cpp:151:16
4 22 21 2 2 3 1 0 0.5 QP::QTimeEvt::expire_ @ src/qf/qf_time.cpp:394:21
3 14 4 1 1 1 1 0 0.1 QP::QTimeEvt::noActive @ src/qf/qf_time.cpp:370:16
1 3 1 1 0 0 1 0 0.3 QP::QTimeEvt::toActive @ include/qp.hpp:709:15
1 3 1 1 0 0 1 0 0.7 QP::QTimeEvt::toTimeEvt @ include/qp.hpp:713:16
3 16 6 1 3 3 0 0 0.5 QP::QTimeEvt::QTimeEvt @ src/qf/qf_time.cpp:54:11
1 4 0 0 0 0 0 0 0.8 QP::QTimeEvt::QTimeEvt @ src/qf/qf_time.cpp:383:11
1 3 1 1 0 0 1 0 0.3 QP::QAsm::state @ include/qp.hpp:222:19
1 3 1 1 0 0 1 0 0.3 QP::QAsm::stateObj @ include/qp.hpp:225:21
1 3 1 1 0 1 0 0 0.3 QP::QEvt::init @ include/qp.hpp:116:10
1 3 0 0 0 0 0 0 0.0 QP::QEvt::init @ include/qp.hpp:115:10
1 3 1 1 0 0 1 0 1.0 QP::QHsm::getStateHandler @ src/qf/qep_hsm.cpp:605:21
5 26 16 2 2 1 1 0 0.3 QP::QMsm::childStateObj @ src/qf/qep_msm.cpp:409:23
1 4 1 1 0 0 1 0 0.3 QP::QMsm::getStateHandler @ src/qf/qep_msm.cpp:440:21
1 5 1 1 0 1 1 0 0.2 QP::QPSet::hasElement @ src/qf/qf_qact.cpp:242:13
1 5 1 1 1 0 1 0 0.4 QP::QPSet::findMax @ src/qf/qf_qact.cpp:289:26
1 4 1 1 0 0 1 0 0.4 QP::QPSet::isEmpty @ src/qf/qf_qact.cpp:222:13
1 4 1 1 0 0 1 0 0.4 QP::QPSet::notEmpty @ src/qf/qf_qact.cpp:232:13
1 3 1 1 0 0 1 0 0.7 QP::QMPool::getBlockSize @ src/qf/qf_mem.cpp:285:20
1 4 1 1 0 0 1 0 0.7 QP::QMPool::getMin @ src/qf/qf_mem.cpp:279:23
1 4 1 1 0 0 1 0 0.5 QP::QMPool::getUse @ src/qf/qf_mem.cpp:266:23
1 4 1 1 0 0 1 0 0.7 QP::QMPool::getFree @ src/qf/qf_mem.cpp:273:23
7 38 13 1 4 1 0 0 0.5 QP::QActive::unsubscribe @ src/qf/qf_ps.cpp:221:15
3 15 8 2 2 2 1 0 0.4 QP::QActive::flushDeferred @ src/qf/qf_defer.cpp:136:24
8 45 18 2 5 0 0 0 0.4 QP::QActive::unsubscribeAll @ src/qf/qf_ps.cpp:252:15
1 4 1 1 1 0 1 0 0.3 QP::QActive::getStateHandler @ src/qf/qf_qact.cpp:173:24
4 21 17 2 1 2 1 0 0.4 QP::QActive::defer @ src/qf/qf_defer.cpp:48:15
1 3 1 1 0 0 1 0 0.3 QP::QActive::getPrio @ include/qp.hpp:561:18
7 38 13 1 4 1 0 0 0.5 QP::QActive::subscribe @ src/qf/qf_ps.cpp:190:15
1 4 1 1 0 0 1 0 0.7 QP::QEQueue::getMin @ src/qf/qf_qeq.cpp:305:24
2 9 4 1 0 0 1 0 0.3 QP::QEQueue::getUse @ src/qf/qf_qeq.cpp:287:24
1 4 1 1 0 0 1 0 0.7 QP::QEQueue::getFree @ src/qf/qf_qeq.cpp:299:24
1 4 1 1 0 0 1 0 0.7 QP::QEQueue::isEmpty @ src/qf/qf_qeq.cpp:311:15
1 4 1 1 1 1 1 0 0.2 QP::QMActive::childStateObj @ src/qf/qf_qmact.cpp:79:27
1 4 1 1 1 0 1 0 0.3 QP::QMActive::getStateHandler @ src/qf/qf_qmact.cpp:85:25
1 3 1 1 0 0 1 0 0.3 QP::QTimeEvt::getInterval @ include/qp.hpp:683:17
1 3 1 1 0 0 1 0 0.3 QP::QTimeEvt::getTickRate @ include/qp.hpp:686:18
1 3 1 1 0 0 1 0 0.3 QP::QTimeEvt::getCtr @ include/qp.hpp:680:17
1 3 1 1 0 0 1 0 0.3 QP::QTimeEvt::getFlags @ include/qp.hpp:689:18
1 3 0 0 0 0 0 0 0.5 QP::QActive::getThread @ include/qp.hpp:571:33
1 3 0 0 0 0 0 0 0.5 QP::QTimeEvt::getAct @ include/qp.hpp:677:18
1 3 1 1 0 0 1 0 0.3 QP::QActive::getThread @ include/qp.hpp:567:33
1 4 1 1 0 0 1 0 0.7 QP::QEQueue::peekFront @ src/qf/qf_qeq.cpp:317:22
1 3 1 1 0 0 1 0 0.3 QP::QTimeEvt::getAct @ include/qp.hpp:673:18
1 3 0 0 0 0 0 0 0.5 QP::QEQueue::peekFront @ include/qequeue.hpp:75:17
1 3 1 1 1 0 0 0 0.2 QP::QF::QF_816U_a32t01p03e4q1m2s00 @ src/qv/qv.cpp:64:6
6 37 17 3 12 0 0 0 0.5 QP::QF::run @ src/qv/qv.cpp:70:7
1 2 0 0 0 0 0 0 0.0 QP::QV::QV @ src/qv/qv.cpp:56:5
3 16 11 1 6 6 0 0 0.3 QP::QActive::start @ src/qv/qv.cpp:173:15
1 4 2 1 1 0 0 0 0.5 QP::QF::QF_816U_a32t01p03e4q1m2s00 @ src/qk/qk.cpp:297:6
4 22 10 1 7 0 0 0 0.5 QP::QF::run @ src/qk/qk.cpp:306:7
5 25 11 2 4 2 1 0 0.5 QP::QK::sched_act_ @ src/qk/qk.cpp:151:23
6 31 12 2 6 1 0 0 0.5 QP::QK::schedUnlock @ src/qk/qk.cpp:92:10
4 19 9 2 2 0 1 0 0.5 QP::QK::sched_ @ src/qk/qk.cpp:124:23
9 55 24 2 7 0 0 0 0.5 QP::QK::activate_ @ src/qk/qk.cpp:187:10
4 20 12 2 4 1 1 0 0.5 QP::QK::schedLock @ src/qk/qk.cpp:65:18
1 4 0 0 0 0 0 0 0.0 QP::QK::QK @ src/qk/qk.cpp:56:5
3 17 13 1 8 6 0 0 0.5 QP::QActive::start @ src/qk/qk.cpp:349:15
1 5 1 1 0 1 0 0 0.3 QP::QXK_contextSw_ @ src/qxk/qxk.cpp:327:6
4 20 8 1 4 2 0 0 0.2 QP::QXSemaphore::init @ src/qxk/qxk_sema.cpp:73:19
13 81 37 2 10 1 1 0 0.6 QP::QXSemaphore::wait @ src/qxk/qxk_sema.cpp:94:19
10 61 27 2 11 0 1 0 0.4 QP::QXSemaphore::signal @ src/qxk/qxk_sema.cpp:207:19
5 27 16 2 3 0 1 0 0.3 QP::QXSemaphore::tryWait @ src/qxk/qxk_sema.cpp:173:19
1 3 0 0 0 0 0 0 0.0 QP::QXSemaphore::QXSemaphore @ src/qxk/qxk_sema.cpp:67:14
1 5 5 1 1 0 0 0 0.7 QP::QF::QF_816U_a32t01p03e4q1m2s00 @ src/qxk/qxk.cpp:385:6
3 16 13 1 7 0 0 0 0.5 QP::QF::run @ src/qxk/qxk.cpp:398:7
6 33 14 2 6 1 0 0 0.5 QP::QXK::schedUnlock @ src/qxk/qxk.cpp:114:11
4 21 11 1 6 0 0 0 0.3 QP::QXK::threadExit_ @ src/qxk/qxk.cpp:356:11
1 3 1 1 0 1 1 0 0.3 QP::QXK::qmstate_cast_ @ include/qxk.hpp:67:28
9 49 23 2 5 0 1 0 0.4 QP::QXK::sched_ @ src/qxk/qxk.cpp:165:24
3 14 8 1 3 0 1 0 0.2 QP::QXK::current @ src/qxk/qxk.cpp:147:16
13 80 36 3 12 0 0 0 0.5 QP::QXK::activate_ @ src/qxk/qxk.cpp:216:11
5 27 13 2 5 1 1 0 0.3 QP::QXK::schedLock @ src/qxk/qxk.cpp:80:19
1 4 0 0 0 0 0 0 0.0 QP::QXK::QXK @ src/qxk/qxk.cpp:68:6
7 41 17 1 8 6 0 0 0.4 QP::QActive::start @ src/qxk/qxk.cpp:440:15
8 47 19 1 6 0 0 0 0.7 QP::QXMutex::relOneThr_ @ src/qxk/qxk_mutex.cpp:353:15
2 10 8 1 4 1 0 0 0.4 QP::QXMutex::init @ src/qxk/qxk_mutex.cpp:71:15
11 69 31 2 11 1 1 0 0.5 QP::QXMutex::lock @ src/qxk/qxk_mutex.cpp:173:15
12 73 32 2 9 0 0 0 0.5 QP::QXMutex::unlock @ src/qxk/qxk_mutex.cpp:275:15
14 86 29 2 3 1 1 0 0.7 QP::QXMutex::tryAcq_ @ src/qxk/qxk_mutex.cpp:90:15
6 34 13 2 4 0 1 0 0.4 QP::QXMutex::tryLock @ src/qxk/qxk_mutex.cpp:243:15
1 3 0 0 0 0 0 0 0.0 QP::QXMutex::QXMutex @ src/qxk/qxk_mutex.cpp:67:10
2 9 8 1 5 0 1 0 0.4 QP::QXThread::delayCancel @ src/qxk/qxk_xthr.cpp:147:16
1 4 3 1 1 2 0 0 0.2 QP::QXThread::init @ src/qxk/qxk_xthr.cpp:85:16
2 7 1 1 1 1 0 0 0.3 QP::QXThread::init @ include/qxk.hpp:90:10
7 40 18 1 7 1 1 0 0.5 QP::QXThread::delay @ src/qxk/qxk_xthr.cpp:101:16
6 35 19 1 8 6 0 0 0.4 QP::QXThread::start @ src/qxk/qxk_xthr.cpp:349:16
5 27 11 2 3 2 0 0 0.7 QP::QXThread::teArm_ @ src/qxk/qxk_xthr.cpp:293:16
1 4 3 1 1 2 0 0 0.2 QP::QXThread::dispatch @ src/qxk/qxk_xthr.cpp:93:16
13 83 42 2 8 1 1 0 0.5 QP::QXThread::queueGet @ src/qxk/qxk_xthr.cpp:164:24
1 4 2 1 1 1 0 0 1.0 QP::QXThread::timeout_ @ src/qxk/qxk_xthr.cpp:281:16
2 8 5 1 0 0 1 0 0.5 QP::QXThread::teDisarm_ @ src/qxk/qxk_xthr.cpp:336:16
1 5 1 1 0 2 0 0 0.3 QP::QXThread::QXThread @ src/qxk/qxk_xthr.cpp:73:11
2 9 3 1 3 0 0 0 0.5 QP::QXThread::block_ @ src/qxk/qxk_xthr.cpp:257:16
2 9 3 1 3 0 0 0 0.5 QP::QXThread::unblock_ @ src/qxk/qxk_xthr.cpp:270:16
1 3 0 0 0 0 0 0 0.5 QP::QActive::getOsObject @ include/qp.hpp:584:33
1 3 0 0 0 0 0 0 0.5 QP::QXThread::getTimeEvt @ include/qxk.hpp:107:22
1 3 1 1 0 0 1 0 0.3 QP::QActive::getOsObject @ include/qp.hpp:580:33
1 3 1 1 0 0 1 0 0.3 QP::QXThread::getTimeEvt @ include/qxk.hpp:103:22
5 29 21 3 1 1 1 0 0.2 (anonymous namespace)::rxParseCmd_ @ src/qs/qs_rx.cpp:589:6
12 74 46 4 5 1 1 0 0.3 (anonymous namespace)::rxParseEvt_ @ src/qs/qs_rx.cpp:777:6
5 27 19 2 1 1 1 0 0.2 (anonymous namespace)::rxParseObj_ @ src/qs/qs_rx.cpp:662:6
15 89 41 3 3 1 1 0 0.2 (anonymous namespace)::rxParsePPF_ @ src/qs/qs_rx.cpp:693:6
15 95 31 2 2 1 0 0 0.2 (anonymous namespace)::rxParseRec_ @ src/qs/qs_rx.cpp:461:6
3 16 9 1 4 1 1 0 0.4 (anonymous namespace)::queryCurrAO_ @ src/qs/qs_rx.cpp:1552:6
3 16 9 2 5 1 1 0 0.3 (anonymous namespace)::queryCurrEP_ @ src/qs/qs_rx.cpp:1572:6
7 34 3 2 8 1 0 0 0.6 (anonymous namespace)::rxParseData_ @ src/qs/qs_rx.cpp:425:6
11 61 25 3 3 1 1 0 0.2 (anonymous namespace)::rxParseMisc_ @ src/qs/qs_rx.cpp:548:6
1 4 7 1 5 1 0 0 0.2 (anonymous namespace)::rxReportAck_ @ src/qs/qs_rx.cpp:1592:6
15 96 40 2 17 1 0 0 0.3 (anonymous namespace)::queryCurrObj_ @ src/qs/qs_rx.cpp:1386:6
1 5 8 1 7 1 0 0 0.3 (anonymous namespace)::rxReportDone_ @ src/qs/qs_rx.cpp:1612:6
6 33 20 3 2 1 1 0 0.2 (anonymous namespace)::rxParseFilter_ @ src/qs/qs_rx.cpp:623:6
1 5 7 1 5 1 0 0 0.2 (anonymous namespace)::rxReportError_ @ src/qs/qs_rx.cpp:1602:6
9 51 42 2 9 2 0 0 0.6 (anonymous namespace)::queryCurrObjOut_ @ src/qs/qs_rx.cpp:1495:6
1 5 3 1 3 0 0 0 0.2 (anonymous namespace)::rxHandleGoodCmd_ @ src/qs/qs_rx.cpp:1059:6
15 91 34 2 10 0 0 0 0.4 (anonymous namespace)::rxHandleGoodEvt_ @ src/qs/qs_rx.cpp:1241:6
8 44 15 2 6 0 0 0 0.2 (anonymous namespace)::rxHandleGoodObj_ @ src/qs/qs_rx.cpp:1199:6
12 71 36 3 10 0 0 0 0.3 (anonymous namespace)::rxHandleGoodPPF_ @ src/qs/qs_rx.cpp:1071:6
3 16 11 2 5 1 0 0 0.2 (anonymous namespace)::rxHandleBadFrame_ @ src/qs/qs_rx.cpp:1364:6
1 4 4 1 3 0 0 0 0.3 (anonymous namespace)::rxHandleGoodInfo_ @ src/qs/qs_rx.cpp:1031:6
1 5 3 1 3 0 0 0 0.2 (anonymous namespace)::rxHandleGoodTick_ @ src/qs/qs_rx.cpp:1040:6
13 78 35 3 10 1 0 0 0.2 (anonymous namespace)::rxHandleGoodFrame_ @ src/qs/qs_rx.cpp:951:6
5 29 14 2 2 0 0 0 0.3 (anonymous namespace)::rxHandleGoodFilter_ @ src/qs/qs_rx.cpp:1150:6
1 4 1 1 0 1 0 0 0.3 (anonymous namespace)::tran_ @ src/qs/qs_rx.cpp:419:6
4 22 17 1 3 0 0 0 0.3 (anonymous namespace)::rxPoke_ @ src/qs/qs_rx.cpp:869:6
1 4 2 1 0 1 1 0 0.3 QP::QS::force_cast @ include/qs.hpp:584:18
8 39 8 2 0 1 1 0 0.4 QP::QS::getCurrObj @ src/qs/qs_rx.cpp:362:11
6 39 27 2 3 1 0 0 0.4 QP::QS::glbFilter_ @ src/qs/qs.cpp:175:10
7 42 28 2 3 1 0 0 0.2 QP::QS::locFilter_ @ src/qs/qs.cpp:244:10
1 4 3 1 1 1 0 0 0.6 QP::QS::rxParseBuf @ src/qs/qs_rx.cpp:298:10
8 42 11 2 0 2 1 0 0.3 QP::QS::setCurrObj @ src/qs/qs_rx.cpp:341:10
2 10 8 1 7 2 0 0 0.4 QP::QS::fun_dict_pre_ @ src/qs/qs.cpp:772:10
1 4 5 1 5 2 0 0 0.2 QP::QS::isr_exit_pre_ @ src/qs/qs.cpp:896:10
2 10 8 1 7 2 0 0 0.4 QP::QS::obj_dict_pre_ @ src/qs/qs.cpp:625:10
2 10 9 1 8 3 0 0 0.3 QP::QS::sig_dict_pre_ @ src/qs/qs.cpp:602:10
1 5 8 1 7 2 0 0 0.5 QP::QS::usr_dict_pre_ @ src/qs/qs.cpp:792:10
3 16 10 1 8 3 0 0 0.2 QP::QS::assertion_pre_ @ src/qs/qs.cpp:839:10
1 4 5 1 5 0 0 0 0.3 QP::QS::crit_exit_pre_ @ src/qs/qs.cpp:872:10
1 5 8 1 7 3 0 0 0.3 QP::QS::enum_dict_pre_ @ src/qs/qs.cpp:811:10
1 4 5 1 5 2 0 0 0.2 QP::QS::isr_entry_pre_ @ src/qs/qs.cpp:883:10
1 4 5 1 5 0 0 0 0.3 QP::QS::crit_entry_pre_ @ src/qs/qs.cpp:862:10
3 17 15 1 7 2 0 0 0.4 QP::QS::epool_dict_pre_ @ src/qs/qs.cpp:646:10
5 31 26 1 5 1 0 0 0.4 QP::QS::target_info_pre_ @ src/qs/qs.cpp:939:10
11 67 41 1 8 3 0 0 0.3 QP::QS::obj_arr_dict_pre_ @ src/qs/qs.cpp:682:10
3 15 9 1 0 1 1 0 0.6 QP::QS::rxPut @ src/qs/qs_rx.cpp:304:10
8 43 28 2 0 0 0 0 0.4 QP::QS::endRec_ @ src/qs/qs.cpp:323:10
1 4 1 1 0 1 0 0 0.0 QP::QS::flagSet @ src/qs/qs.cpp:146:10
3 15 11 2 0 0 1 0 0.7 QP::QS::getByte @ src/qs/qs.cpp:80:19
1 5 7 1 5 2 0 0 0.4 QP::QS::initBuf @ src/qs/qs.cpp:59:10
7 38 24 3 5 0 0 0 0.5 QP::QS::rxParse @ src/qs/qs_rx.cpp:253:10
7 34 27 2 0 2 0 0 0.8 QP::QS::u8_fmt_ @ src/qs/qs.cpp:461:10
6 27 22 2 0 1 0 0 0.7 QP::QS::u8_raw_ @ src/qs/qs.cpp:355:10
8 44 31 2 0 2 0 0 0.7 QP::QS::f32_fmt_ @ src/qs/qs_fp.cpp:53:10
15 86 52 2 0 2 0 0 0.4 QP::QS::f64_fmt_ @ src/qs/qs_fp.cpp:87:10
5 25 20 2 0 1 1 0 0.4 QP::QS::getBlock @ src/qs/qs.cpp:100:26
13 67 45 2 0 2 0 0 0.6 QP::QS::mem_fmt_ @ src/qs/qs.cpp:572:10
1 5 2 1 1 1 0 0 0.4 QP::QS::obj_raw_ @ src/qs/qs.cpp:423:10
5 25 27 1 0 1 0 0 0.7 QP::QS::str_fmt_ @ src/qs/qs.cpp:542:10
4 20 22 1 0 1 0 0 0.6 QP::QS::str_raw_ @ src/qs/qs.cpp:438:10
12 61 44 2 0 2 0 0 0.7 QP::QS::u16_fmt_ @ src/qs/qs.cpp:485:10
11 53 39 2 0 1 0 0 0.5 QP::QS::u16_raw_ @ src/qs/qs.cpp:387:10
8 42 30 2 0 2 0 0 0.7 QP::QS::u32_fmt_ @ src/qs/qs.cpp:512:10
7 36 25 2 0 1 0 0 0.5 QP::QS::u32_raw_ @ src/qs/qs.cpp:405:10
12 63 41 2 0 2 0 0 0.3 QP::QS::u64_fmt_ @ src/qs/qs_64bit.cpp:71:10
7 36 26 2 0 1 0 0 0.2 QP::QS::u64_raw_ @ src/qs/qs_64bit.cpp:53:10
7 35 29 2 0 1 0 0 0.6 QP::QS::beginRec_ @ src/qs/qs.cpp:303:10
2 10 1 1 0 3 1 0 0.2 QP::QS::fltCheck_ @ src/qs/qs.cpp:150:10
3 14 8 2 0 1 1 0 0.3 QP::QS::getCurrId @ src/qs/qs_rx.cpp:398:18
1 4 1 1 0 2 1 0 0.2 QP::QS::glbCheck_ @ src/qs/qs.cpp:162:10
1 4 1 1 0 1 1 0 0.0 QP::QS::isFlagSet @ src/qs/qs.cpp:142:10
1 5 1 1 0 1 1 0 0.2 QP::QS::locCheck_ @ src/qs/qs.cpp:169:10
3 14 8 2 0 0 1 0 0.3 QP::QS::rxGetFree @ src/qs/qs_rx.cpp:321:19
1 5 7 1 5 2 0 0 0.3 QP::QS::rxInitBuf @ src/qs/qs_rx.cpp:231:10
3 15 10 2 0 2 1 0 0.2 QP::QS::setCurrId @ src/qs/qs_rx.cpp:378:10
11 51 37 2 0 2 0 0 0.5 QP::QS::u8u8_raw_ @ src/qs/qs.cpp:369:10
13 75 29 2 1 0 1 0 0.3 QP::monthNum @ src/qs/qs.cpp:910:14
1 3 1 1 0 0 1 0 0.3 QP::QSpyId::getPrio @ include/qs.hpp:239:23

Backward Traceability

  • [SDS_QP_MOD_01] Design view: QP/C++ Framework shall collect metrics and apply HIS limits.

File Metrics

This section contains the file metrics measured by the PC-Lint-Plus (v2025) static analysis tool. The metrics were collected for most source and header files in the QP/C++ distribution, including the QP/Spy software tracing component (typically inactive in the Release build configuration).

HIS Metric PCLP Metrics Description (from PCLP Manual)
LINES num_lines The number of lines in a file prior to preprocessing.
CODE num_code_lines The number of code lines in a file prior to preprocessing.
COMMENT num_comment_lines The number of comment lines in a file prior to preprocessing.
INCL num_include_directives The number of lines with the grammatical form of an include directive written within a file prior to preprocessing. This includes directives within conditionally disabled regions.

[SMR_QP_FILE]

QP/C++ file metrics report.

LINES CODE COMMENT INCL File
----------------------------------------
104 59 37 0 qpcpp/include/qequeue.hpp
114 60 41 0 qpcpp/include/qk.hpp
97 55 35 0 qpcpp/include/qmpool.hpp
951 698 182 1 qpcpp/include/qp.hpp
303 188 91 0 qpcpp/include/qp_cfgchk.hpp
129 65 55 0 qpcpp/include/qp_pkg.hpp
775 556 210 0 qpcpp/include/qs.hpp
119 74 34 0 qpcpp/include/qs_dummy.hpp
168 101 70 0 qpcpp/include/qs_pkg.hpp
37 7 30 0 qpcpp/include/qstamp.hpp
81 30 41 0 qpcpp/include/qv.hpp
242 156 57 0 qpcpp/include/qxk.hpp
611 387 236 6 qpcpp/src/qf/qep_hsm.cpp
445 305 137 6 qpcpp/src/qf/qep_msm.cpp
95 41 59 6 qpcpp/src/qf/qf_act.cpp
480 304 193 6 qpcpp/src/qf/qf_actq.cpp
157 95 82 6 qpcpp/src/qf/qf_defer.cpp
392 231 130 6 qpcpp/src/qf/qf_dyn.cpp
300 174 142 6 qpcpp/src/qf/qf_mem.cpp
291 150 109 6 qpcpp/src/qf/qf_ps.cpp
300 201 112 6 qpcpp/src/qf/qf_qact.cpp
323 214 156 6 qpcpp/src/qf/qf_qeq.cpp
90 42 55 6 qpcpp/src/qf/qf_qmact.cpp
441 268 178 6 qpcpp/src/qf/qf_time.cpp
387 224 155 6 qpcpp/src/qk/qk.cpp
236 126 109 5 qpcpp/src/qs/qf_stub.cpp
1007 688 378 4 qpcpp/src/qs/qs.cpp
99 39 59 2 qpcpp/src/qs/qs_64bit.cpp
134 60 80 2 qpcpp/src/qs/qs_fp.cpp
1625 1360 468 5 qpcpp/src/qs/qs_rx.cpp
34 5 29 1 qpcpp/src/qs/qstamp.cpp
516 338 186 5 qpcpp/src/qs/qutest.cpp
200 115 93 6 qpcpp/src/qv/qv.cpp
483 293 186 6 qpcpp/src/qxk/qxk.cpp
402 215 170 6 qpcpp/src/qxk/qxk_mutex.cpp
266 148 117 6 qpcpp/src/qxk/qxk_sema.cpp
398 204 158 6 qpcpp/src/qxk/qxk_xthr.cpp
142 63 66 7 qpcpp/static-analysis/pclp/qk/qp_port.hpp
206 15 166 0 qpcpp/static-analysis/pclp/qp_config.hpp
121 45 65 7 qpcpp/static-analysis/pclp/qv/qp_port.hpp
67 11 53 2 qpcpp/static-analysis/pclp/qv/qs_port.hpp
153 67 70 7 qpcpp/static-analysis/pclp/qxk/qp_port.hpp

Backward Traceability

  • [SDS_QP_MOD_01] Design view: QP/C++ Framework shall collect metrics and apply HIS limits.