qpcpp/doxygen/metrics.dox

235 lines
18 KiB
Plaintext
Raw Normal View History

2022-05-09 14:52:11 -04:00
/** @defgroup metrics Code Metrics
2022-05-09 14:52:11 -04:00
@code{.cpp}
QP/C++ Code Metrics
================================================
NLOC CCN token PARAM length location
------------------------------------------------
2022-08-28 22:12:27 -04:00
3 1 13 1 4 QP::QEvt::QEvt@183-186@..\include\qep.hpp
7 1 27 2 7 QP::QEvt::QEvt@192-198@..\include\qep.hpp
2 1 6 0 3 QP::QEvt::~QEvt@204-206@..\include\qep.hpp
2 1 6 0 3 QP::QHsm::~QHsm@374-376@..\include\qep.hpp
3 1 17 1 3 QP::QHsm::init@405-407@..\include\qep.hpp
3 1 12 0 3 QP::QHsm::state@454-456@..\include\qep.hpp
3 1 11 0 3 QP::QHsm::getStateHandler@461-463@..\include\qep.hpp
4 1 18 1 4 QP::QHsm::tran@493-496@..\include\qep.hpp
4 1 18 1 4 QP::QHsm::tran_hist@499-502@..\include\qep.hpp
4 1 18 1 4 QP::QHsm::super@505-508@..\include\qep.hpp
4 1 30 1 4 QP::QHsm::qm_tran@512-515@..\include\qep.hpp
4 1 30 1 4 QP::QHsm::qm_tran_init@519-522@..\include\qep.hpp
8 1 42 2 8 QP::QHsm::qm_tran_hist@526-533@..\include\qep.hpp
4 1 30 1 4 QP::QHsm::qm_tran_ep@537-540@..\include\qep.hpp
8 1 40 2 8 QP::QHsm::qm_tran_xp@544-551@..\include\qep.hpp
4 1 20 1 4 QP::QHsm::qm_entry@556-559@..\include\qep.hpp
4 1 22 1 4 QP::QHsm::qm_entry@565-568@..\include\qep.hpp
4 1 20 1 4 QP::QHsm::qm_exit@574-577@..\include\qep.hpp
4 1 22 1 4 QP::QHsm::qm_exit@583-586@..\include\qep.hpp
4 1 20 1 4 QP::QHsm::qm_sm_exit@590-593@..\include\qep.hpp
4 1 20 1 4 QP::QHsm::qm_super_sub@597-600@..\include\qep.hpp
6 1 26 1 6 QP::QMsm::QMsm@686-691@..\include\qep.hpp
3 1 20 1 3 QP::QMsm::init@704-706@..\include\qep.hpp
3 1 12 0 3 QP::QMsm::stateObj@749-751@..\include\qep.hpp
3 1 14 0 3 QP::QMsm::getStateHandler@781-783@..\include\qep.hpp
3 1 10 0 3 QP::QEQueue::getNFree@289-291@..\include\qequeue.hpp
3 1 10 0 3 QP::QEQueue::getNMin@304-306@..\include\qequeue.hpp
3 1 12 0 3 QP::QEQueue::isEmpty@318-320@..\include\qequeue.hpp
5 2 24 0 8 QP::QPSet::setEmpty@229-236@..\include\qf.hpp
4 3 35 0 7 QP::QPSet::isEmpty@239-245@..\include\qf.hpp
4 3 35 0 7 QP::QPSet::notEmpty@248-254@..\include\qf.hpp
6 3 97 1 9 QP::QPSet::hasElement@257-265@..\include\qf.hpp
11 3 101 1 14 QP::QPSet::insert@268-281@..\include\qf.hpp
12 3 117 1 15 QP::QPSet::remove@284-298@..\include\qf.hpp
6 3 45 0 9 QP::QPSet::findMax@301-309@..\include\qf.hpp
9 1 49 5 9 QP::QActive::start@476-484@..\include\qf.hpp
3 1 10 0 3 QP::QActive::getPrio@709-711@..\include\qf.hpp
4 1 38 1 4 QP::QActive::setPrio@716-719@..\include\qf.hpp
3 1 9 0 3 QP::QActive::getOsObject@732-734@..\include\qf.hpp
3 1 9 0 3 QP::QActive::getThread@741-743@..\include\qf.hpp
5 1 20 1 5 QP::QMActive::QMActive@895-899@..\include\qf.hpp
3 1 12 0 3 QP::QMActive::stateObj@920-922@..\include\qf.hpp
3 1 10 0 3 QP::QTimeEvt::getAct@1116-1118@..\include\qf.hpp
3 1 10 0 3 QP::QTimeEvt::getCtr@1121-1123@..\include\qf.hpp
3 1 10 0 3 QP::QTimeEvt::getInterval@1126-1128@..\include\qf.hpp
3 1 16 0 3 QP::QTimeEvt::toActive@1185-1187@..\include\qf.hpp
3 1 16 0 3 QP::QTimeEvt::toTimeEvt@1190-1192@..\include\qf.hpp
6 1 23 2 6 QP::QF::psInit@1342-1347@..\include\qf.hpp
7 1 34 3 7 QP::QF::publish_@1354-1360@..\include\qf.hpp
6 1 26 2 6 QP::QF::tick_@1367-1372@..\include\qf.hpp
3 1 16 1 3 QP::QF_EVT_POOL_ID_@110-112@..\include\qf_pkg.hpp
3 1 16 1 3 QP::QF_EVT_REF_CTR_@115-117@..\include\qf_pkg.hpp
3 1 29 1 3 QP::QF_EVT_REF_CTR_INC_@120-122@..\include\qf_pkg.hpp
3 1 29 1 3 QP::QF_EVT_REF_CTR_DEC_@125-127@..\include\qf_pkg.hpp
3 1 10 0 3 QP::QMPool::getNMin@263-265@..\include\qmpool.hpp
3 1 10 0 3 QP::QMPool::getNFree@275-277@..\include\qmpool.hpp
3 1 18 0 3 QP::QSpyId::getPrio@317-319@..\include\qs.hpp
7 1 28 1 7 QP::QS::force_cast@395-401@..\include\qs.hpp
14 3 70 1 14 QP::QS::rxPut@801-814@..\include\qs.hpp
9 1 49 5 9 QP::QActiveDummy::start@1513-1521@..\include\qs.hpp
3 1 18 0 3 QP::QSpyId::getPrio@134-136@..\include\qs_dummy.hpp
3 1 11 0 3 QP::QXThread::getTimeEvt@210-212@..\include\qxk.hpp
9 1 49 5 9 QP::QXThread::start@312-320@..\include\qxk.hpp
2 1 15 2 3 QP::QEvt@101-103@..\src\qf\qep_hsm.cpp
4 1 27 1 4 QP::QHsm::QHsm@130-133@..\src\qf\qep_hsm.cpp
50 7 303 2 71 QP::QHsm::init@136-206@..\src\qf\qep_hsm.cpp
105 15 587 2 158 QP::QHsm::dispatch@209-366@..\src\qf\qep_hsm.cpp
8 1 31 2 8 QP::QHsm::top@369-376@..\src\qf\qep_hsm.cpp
16 3 85 1 22 QP::QHsm::isIn@379-400@..\src\qf\qep_hsm.cpp
20 4 105 1 29 QP::QHsm::childState@403-431@..\src\qf\qep_hsm.cpp
95 15 439 2 130 QP::QHsm::hsm_tran@434-563@..\src\qf\qep_hsm.cpp
25 3 165 2 38 QP::QMsm::init@79-116@..\src\qf\qep_msm.cpp
116 21 658 2 168 QP::QMsm::dispatch@119-286@..\src\qf\qep_msm.cpp
13 3 59 1 14 QP::QMsm::isInState@289-302@..\src\qf\qep_msm.cpp
19 4 87 1 26 QP::QMsm::childStateObj@305-330@..\src\qf\qep_msm.cpp
51 9 294 2 62 QP::QMsm::execTatbl_@333-394@..\src\qf\qep_msm.cpp
22 4 107 3 29 QP::QMsm::exitToTranSource_@397-425@..\src\qf\qep_msm.cpp
44 6 227 2 55 QP::QMsm::enterHistory_@428-482@..\src\qf\qep_msm.cpp
82 13 408 3 118 QP::QActive::post_@77-194@..\src\qf\qf_actq.cpp
42 7 237 1 63 QP::QActive::postLIFO@202-264@..\src\qf\qf_actq.cpp
34 3 205 0 45 QP::QActive::get_@272-316@..\src\qf\qf_actq.cpp
10 2 72 1 11 QP::QF::getQueueMin@326-336@..\src\qf\qf_actq.cpp
5 1 30 1 6 QP::QTicker::QTicker@349-354@..\src\qf\qf_actq.cpp
8 1 34 2 8 QP::QTicker::init@357-364@..\src\qf\qf_actq.cpp
3 1 21 1 3 QP::QTicker::init@367-369@..\src\qf\qf_actq.cpp
16 2 81 2 18 QP::QTicker::dispatch@372-389@..\src\qf\qf_actq.cpp
30 3 166 3 42 QP::QTicker::post_@392-433@..\src\qf\qf_actq.cpp
15 1 79 2 17 QP::QActive::defer@70-86@..\src\qf\qf_defer.cpp
32 3 157 1 50 QP::QActive::recall@94-143@..\src\qf\qf_defer.cpp
11 2 62 1 11 QP::QActive::flushDeferred@151-161@..\src\qf\qf_defer.cpp
18 3 151 3 26 QP::QF::poolInit@71-96@..\src\qf\qf_dyn.cpp
41 7 276 3 57 QP::QF::newX_@99-155@..\src\qf\qf_dyn.cpp
35 5 257 1 57 QP::QF::gc@158-214@..\src\qf\qf_dyn.cpp
3 1 21 0 3 QP::QF::poolGetMaxBlockSize@217-219@..\src\qf\qf_dyn.cpp
19 2 104 2 26 QP::QF::newRef_@222-247@..\src\qf\qf_dyn.cpp
11 1 68 1 12 QP::QF::deleteRef_@250-261@..\src\qf\qf_dyn.cpp
10 3 77 1 12 QP::QF::getPoolMin@264-275@..\src\qf\qf_dyn.cpp
9 1 42 0 9 QP::QMPool::QMPool@71-79@..\src\qf\qf_mem.cpp
33 5 234 3 55 QP::QMPool::init@82-136@..\src\qf\qf_mem.cpp
43 4 208 2 67 QP::QMPool::get@139-205@..\src\qf\qf_mem.cpp
20 2 107 2 26 QP::QMPool::put@208-233@..\src\qf\qf_mem.cpp
3 1 12 0 3 QP::QMPool::getBlockSize@236-238@..\src\qf\qf_mem.cpp
9 1 44 2 9 QP::QActive::psInit@83-91@..\src\qf\qf_ps.cpp
42 5 238 3 69 QP::QActive::publish_@99-167@..\src\qf\qf_ps.cpp
16 5 108 1 20 QP::QActive::subscribe@175-194@..\src\qf\qf_ps.cpp
16 5 108 1 23 QP::QActive::unsubscribe@202-224@..\src\qf\qf_ps.cpp
19 5 127 0 25 QP::QActive::unsubscribeAll@232-256@..\src\qf\qf_ps.cpp
10 2 59 2 10 QP::QF::bzero@96-105@..\src\qf\qf_qact.cpp
9 4 65 1 17 QP::QActive::QActive@116-132@..\src\qf\qf_qact.cpp
31 9 208 0 44 QP::QActive::register_@140-183@..\src\qf\qf_qact.cpp
10 3 72 0 11 QP::QActive::unregister_@191-201@..\src\qf\qf_qact.cpp
24 6 158 1 29 QP::QPSet::QF_LOG2@212-240@..\src\qf\qf_qact.cpp
9 1 43 0 9 QP::QEQueue::QEQueue@71-79@..\src\qf\qf_qeq.cpp
14 2 74 2 14 QP::QEQueue::init@82-95@..\src\qf\qf_qeq.cpp
57 8 277 3 76 QP::QEQueue::post@98-173@..\src\qf\qf_qeq.cpp
36 5 174 2 46 QP::QEQueue::postLIFO@176-221@..\src\qf\qf_qeq.cpp
36 4 190 1 46 QP::QEQueue::get@224-269@..\src\qf\qf_qeq.cpp
7 1 41 2 7 QP::QMActive::init@78-84@..\src\qf\qf_qmact.cpp
4 1 33 1 4 QP::QMActive::init@87-90@..\src\qf\qf_qmact.cpp
6 1 32 2 6 QP::QMActive::dispatch@93-98@..\src\qf\qf_qmact.cpp
3 1 27 1 3 QP::QMActive::isInState@101-103@..\src\qf\qf_qmact.cpp
4 1 27 1 4 QP::QMActive::childStateObj@106-109@..\src\qf\qf_qmact.cpp
3 1 20 0 3 QP::QMActive::getStateHandler@113-115@..\src\qf\qf_qmact.cpp
18 2 101 3 34 QP::QTimeEvt::QTimeEvt@72-105@..\src\qf\qf_time.cpp
34 8 217 2 58 QP::QTimeEvt::armX@108-165@..\src\qf\qf_time.cpp
32 3 169 0 41 QP::QTimeEvt::disarm@168-208@..\src\qf\qf_time.cpp
33 8 217 1 58 QP::QTimeEvt::rearm@211-268@..\src\qf\qf_time.cpp
5 1 37 0 6 QP::QTimeEvt::wasDisarmed@271-276@..\src\qf\qf_time.cpp
72 7 396 2 112 QP::QTimeEvt::tick_@279-390@..\src\qf\qf_time.cpp
14 3 70 1 16 QP::QTimeEvt::noActive@393-408@..\src\qf\qf_time.cpp
13 1 50 0 27 QP::QTimeEvt::QTimeEvt@411-437@..\src\qf\qf_time.cpp
22 2 136 1 32 QP::QK::schedLock@76-107@..\src\qk\qk.cpp
21 4 129 1 32 QP::QK::schedUnlock@110-141@..\src\qk\qk.cpp
13 2 111 0 18 QP::QF::init@151-168@..\src\qk\qk.cpp
3 1 9 0 4 QP::QF::stop@171-174@..\src\qk\qk.cpp
15 4 62 0 25 QP::QF::run@177-201@..\src\qk\qk.cpp
25 3 146 6 34 QP::QActive::start@212-245@..\src\qk\qk.cpp
15 3 96 0 19 QK_sched_@258-276@..\src\qk\qk.cpp
63 15 427 0 107 QK_activate_@279-385@..\src\qk\qk.cpp
9 2 78 0 13 QP::QF::init@83-95@..\src\qv\qv.cpp
3 1 9 0 4 QP::QF::stop@98-101@..\src\qv\qv.cpp
38 9 197 0 74 QP::QF::run@104-177@..\src\qv\qv.cpp
18 1 114 6 25 QP::QActive::start@188-212@..\src\qv\qv.cpp
24 3 152 1 35 QP::QXK::schedLock@77-111@..\src\qxk\qxk.cpp
20 4 129 1 32 QP::QXK::schedUnlock@114-145@..\src\qxk\qxk.cpp
17 2 163 0 26 QP::QF::init@155-180@..\src\qxk\qxk.cpp
3 1 9 0 4 QP::QF::stop@183-186@..\src\qxk\qxk.cpp
15 4 62 0 25 QP::QF::run@189-213@..\src\qxk\qxk.cpp
26 3 150 6 35 QP::QActive::start@224-258@..\src\qxk\qxk.cpp
79 16 552 0 135 QXK_activate_@271-405@..\src\qxk\qxk.cpp
58 9 328 0 77 QXK_sched_@408-484@..\src\qxk\qxk.cpp
12 2 69 0 18 QXK_current@487-504@..\src\qxk\qxk.cpp
14 2 110 0 23 QXK_threadExit_@507-529@..\src\qxk\qxk.cpp
3 1 15 0 3 QP::QXMutex::QXMutex@76-78@..\src\qxk\qxk_mutex.cpp
7 2 52 1 8 QP::QXMutex::init@81-88@..\src\qxk\qxk_mutex.cpp
61 9 422 0 95 QP::QXMutex::tryLock@91-185@..\src\qxk\qxk_mutex.cpp
81 11 599 1 133 QP::QXMutex::lock@188-320@..\src\qxk\qxk_mutex.cpp
77 12 578 0 129 QP::QXMutex::unlock@323-451@..\src\qxk\qxk_mutex.cpp
9 1 58 2 11 QP::QXSemaphore::init@76-86@..\src\qxk\qxk_sema.cpp
54 7 346 1 79 QP::QXSemaphore::wait@89-167@..\src\qxk\qxk_sema.cpp
27 3 131 0 38 QP::QXSemaphore::tryWait@170-207@..\src\qxk\qxk_sema.cpp
41 7 251 0 64 QP::QXSemaphore::signal@210-273@..\src\qxk\qxk_sema.cpp
9 1 56 2 9 QP::QXThread::QXThread@77-85@..\src\qxk\qxk_xthr.cpp
21 4 178 1 36 QP::QXThread::delay@88-123@..\src\qxk\qxk_xthr.cpp
14 2 57 0 16 QP::QXThread::delayCancel@126-141@..\src\qxk\qxk_xthr.cpp
58 7 429 1 86 QP::QXThread::queueGet@144-229@..\src\qxk\qxk_xthr.cpp
8 1 33 2 8 QP::QXThread::init@232-239@..\src\qxk\qxk_xthr.cpp
4 1 22 1 4 QP::QXThread::init@242-245@..\src\qxk\qxk_xthr.cpp
8 1 33 2 8 QP::QXThread::dispatch@248-255@..\src\qxk\qxk_xthr.cpp
27 5 182 6 44 QP::QXThread::start@258-301@..\src\qxk\qxk_xthr.cpp
96 13 478 3 129 QP::QXThread::post_@304-432@..\src\qxk\qxk_xthr.cpp
4 1 23 1 4 QP::QXThread::postLIFO@435-438@..\src\qxk\qxk_xthr.cpp
5 1 49 0 6 QP::QXThread::block_@441-446@..\src\qxk\qxk_xthr.cpp
8 3 58 0 9 QP::QXThread::unblock_@449-457@..\src\qxk\qxk_xthr.cpp
22 3 153 2 40 QP::QXThread::teArm_@460-499@..\src\qxk\qxk_xthr.cpp
11 2 41 0 14 QP::QXThread::teDisarm_@502-515@..\src\qxk\qxk_xthr.cpp
2022-08-11 15:36:19 -04:00
34 file analyzed.
==============================================================
NLOC Avg.NLOC AvgCCN Avg.token function_cnt file
--------------------------------------------------------------
2022-08-11 15:36:19 -04:00
7 0.0 0.0 0.0 0 ..\include\qassert.h
234 4.1 1.0 20.6 25 ..\include\qep.hpp
2022-08-28 22:12:27 -04:00
46 3.0 1.0 10.7 3 ..\include\qequeue.hpp
315 5.1 1.6 33.9 22 ..\include\qf.hpp
30 3.0 1.0 22.5 4 ..\include\qf_pkg.hpp
25 0.0 0.0 0.0 0 ..\include\qk.hpp
2022-08-11 15:36:19 -04:00
49 3.0 1.0 10.0 2 ..\include\qmpool.hpp
5 0.0 0.0 0.0 0 ..\include\qpcpp.hpp
2022-08-28 22:12:27 -04:00
396 8.2 1.5 41.2 4 ..\include\qs.hpp
5 0.0 0.0 0.0 0 ..\include\qstamp.cpp
4 0.0 0.0 0.0 0 ..\include\qstamp.hpp
2022-08-11 15:36:19 -04:00
25 3.0 1.0 18.0 1 ..\include\qs_dummy.hpp
25 0.0 0.0 0.0 0 ..\include\qs_pkg.hpp
9 0.0 0.0 0.0 0 ..\include\quit.hpp
2022-08-11 15:36:19 -04:00
8 0.0 0.0 0.0 0 ..\include\qv.hpp
2022-08-28 22:12:27 -04:00
122 6.0 1.0 30.0 2 ..\include\qxk.hpp
323 37.5 5.9 199.0 8 ..\src\qf\qep_hsm.cpp
2022-08-11 15:36:19 -04:00
307 41.4 7.1 228.1 7 ..\src\qf\qep_msm.cpp
2 0.0 0.0 0.0 0 ..\src\qf\qf_act.cpp
251 25.6 3.7 139.3 9 ..\src\qf\qf_actq.cpp
73 19.3 2.0 99.3 3 ..\src\qf\qf_defer.cpp
2022-08-28 22:12:27 -04:00
150 19.6 3.1 136.3 7 ..\src\qf\qf_dyn.cpp
2022-08-11 15:36:19 -04:00
119 21.6 2.6 120.6 5 ..\src\qf\qf_mem.cpp
2022-08-28 22:12:27 -04:00
127 20.4 4.2 125.0 5 ..\src\qf\qf_ps.cpp
116 16.8 4.8 112.4 5 ..\src\qf\qf_qact.cpp
2022-08-11 15:36:19 -04:00
163 30.4 4.0 151.6 5 ..\src\qf\qf_qeq.cpp
33 4.5 1.0 30.0 6 ..\src\qf\qf_qmact.cpp
233 27.6 4.1 157.1 8 ..\src\qf\qf_time.cpp
2022-08-28 22:12:27 -04:00
199 22.1 4.2 139.5 8 ..\src\qk\qk.cpp
87 17.0 3.2 99.5 4 ..\src\qv\qv.cpp
290 26.8 4.6 172.4 10 ..\src\qxk\qxk.cpp
240 45.8 7.0 333.2 5 ..\src\qxk\qxk_mutex.cpp
142 32.8 4.5 196.5 4 ..\src\qxk\qxk_sema.cpp
306 21.1 3.2 128.0 14 ..\src\qxk\qxk_xthr.cpp
=========================================================================================================
!!!! Warnings (cyclomatic_complexity > 20 or length > 500 or nloc > 1000000 or parameter_count > 10) !!!!
================================================
NLOC CCN token PARAM length location
------------------------------------------------
2022-08-28 22:12:27 -04:00
116 21 658 2 168 QP::QMsm::dispatch@119-286@..\src\qf\qep_msm.cpp
==========================================================================================
Total nloc Avg.NLOC AvgCCN Avg.token Fun Cnt Warning cnt Fun Rt nloc Rt
------------------------------------------------------------------------------------------
2022-08-28 22:12:27 -04:00
4466 18.0 3.1 106.9 176 1 0.01 0.04
@endcode
*/