/** @defgroup metrics Code Metrics @code{.cpp} QP/C++ Code Metrics ================================================ NLOC CCN token PARAM length location ------------------------------------------------ 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@234-241@..\include\qf.hpp 4 3 35 0 7 QP::QPSet::isEmpty@244-250@..\include\qf.hpp 4 3 35 0 7 QP::QPSet::notEmpty@253-259@..\include\qf.hpp 6 3 97 1 9 QP::QPSet::hasElement@262-270@..\include\qf.hpp 11 3 101 1 14 QP::QPSet::insert@273-286@..\include\qf.hpp 12 3 117 1 15 QP::QPSet::remove@289-303@..\include\qf.hpp 6 3 45 0 9 QP::QPSet::findMax@306-314@..\include\qf.hpp 9 1 49 5 9 QP::QActive::start@478-486@..\include\qf.hpp 3 1 10 0 3 QP::QActive::getPrio@711-713@..\include\qf.hpp 4 1 38 1 4 QP::QActive::setPrio@718-721@..\include\qf.hpp 3 1 9 0 3 QP::QActive::getOsObject@734-736@..\include\qf.hpp 3 1 9 0 3 QP::QActive::getThread@743-745@..\include\qf.hpp 5 1 20 1 5 QP::QMActive::QMActive@897-901@..\include\qf.hpp 3 1 12 0 3 QP::QMActive::stateObj@922-924@..\include\qf.hpp 3 1 10 0 3 QP::QTimeEvt::getAct@1118-1120@..\include\qf.hpp 3 1 10 0 3 QP::QTimeEvt::getCtr@1123-1125@..\include\qf.hpp 3 1 10 0 3 QP::QTimeEvt::getInterval@1128-1130@..\include\qf.hpp 3 1 16 0 3 QP::QTimeEvt::toActive@1187-1189@..\include\qf.hpp 3 1 16 0 3 QP::QTimeEvt::toTimeEvt@1192-1194@..\include\qf.hpp 6 1 23 2 6 QP::QF::psInit@1344-1349@..\include\qf.hpp 7 1 34 3 7 QP::QF::publish_@1356-1362@..\include\qf.hpp 6 1 26 2 6 QP::QF::tick_@1369-1374@..\include\qf.hpp 3 1 16 1 3 QP::QF_EVT_POOL_ID_@112-114@..\include\qf_pkg.hpp 3 1 16 1 3 QP::QF_EVT_REF_CTR_@117-119@..\include\qf_pkg.hpp 3 1 29 1 3 QP::QF_EVT_REF_CTR_INC_@122-124@..\include\qf_pkg.hpp 3 1 29 1 3 QP::QF_EVT_REF_CTR_DEC_@127-129@..\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@315-317@..\include\qs.hpp 7 1 28 1 7 QP::QS::force_cast@399-405@..\include\qs.hpp 14 3 70 1 14 QP::QS::rxPut@805-818@..\include\qs.hpp 9 1 49 5 9 QP::QActiveDummy::start@1517-1525@..\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@208-210@..\include\qxk.hpp 9 1 49 5 9 QP::QXThread::start@310-318@..\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 14 410 3 120 QP::QActive::post_@77-196@..\src\qf\qf_actq.cpp 42 7 237 1 63 QP::QActive::postLIFO@204-266@..\src\qf\qf_actq.cpp 34 3 205 0 45 QP::QActive::get_@274-318@..\src\qf\qf_actq.cpp 10 2 72 1 11 QP::QF::getQueueMin@328-338@..\src\qf\qf_actq.cpp 5 1 30 1 6 QP::QTicker::QTicker@351-356@..\src\qf\qf_actq.cpp 8 1 34 2 8 QP::QTicker::init@359-366@..\src\qf\qf_actq.cpp 3 1 21 1 3 QP::QTicker::init@369-371@..\src\qf\qf_actq.cpp 16 2 81 2 18 QP::QTicker::dispatch@374-391@..\src\qf\qf_actq.cpp 30 3 166 3 42 QP::QTicker::post_@394-435@..\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 3 62 1 13 QP::QActive::flushDeferred@151-163@..\src\qf\qf_defer.cpp 18 3 151 3 26 QP::QF::poolInit@97-122@..\src\qf\qf_dyn.cpp 41 7 282 3 57 QP::QF::newX_@125-181@..\src\qf\qf_dyn.cpp 35 5 257 1 57 QP::QF::gc@184-240@..\src\qf\qf_dyn.cpp 3 1 21 0 3 QP::QF::poolGetMaxBlockSize@243-245@..\src\qf\qf_dyn.cpp 19 2 104 2 26 QP::QF::newRef_@248-273@..\src\qf\qf_dyn.cpp 11 2 68 1 14 QP::QF::deleteRef_@276-289@..\src\qf\qf_dyn.cpp 10 3 77 1 12 QP::QF::getPoolMin@292-303@..\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 6 238 3 71 QP::QActive::publish_@99-169@..\src\qf\qf_ps.cpp 16 5 108 1 20 QP::QActive::subscribe@177-196@..\src\qf\qf_ps.cpp 16 5 108 1 23 QP::QActive::unsubscribe@204-226@..\src\qf\qf_ps.cpp 19 5 127 0 25 QP::QActive::unsubscribeAll@234-258@..\src\qf\qf_ps.cpp 10 2 59 2 10 QP::QF::bzero@97-106@..\src\qf\qf_qact.cpp 9 4 65 1 17 QP::QActive::QActive@117-133@..\src\qf\qf_qact.cpp 30 10 198 0 46 QP::QActive::register_@141-186@..\src\qf\qf_qact.cpp 10 3 72 0 11 QP::QActive::unregister_@194-204@..\src\qf\qf_qact.cpp 24 6 158 1 29 QP::QPSet::QF_LOG2@215-243@..\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 281 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 20 4 129 1 32 QP::QK::schedUnlock@110-141@..\src\qk\qk.cpp 9 3 87 0 17 QP::QF::init@151-167@..\src\qk\qk.cpp 3 1 9 0 4 QP::QF::stop@170-173@..\src\qk\qk.cpp 15 4 62 0 25 QP::QF::run@176-200@..\src\qk\qk.cpp 25 3 146 6 34 QP::QActive::start@211-244@..\src\qk\qk.cpp 19 4 93 0 24 QK_sched_@257-280@..\src\qk\qk.cpp 65 17 428 0 112 QK_activate_@283-394@..\src\qk\qk.cpp 7 3 66 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 10 197 0 75 QP::QF::run@104-178@..\src\qv\qv.cpp 18 1 114 6 25 QP::QActive::start@189-213@..\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 13 3 139 0 24 QP::QF::init@155-178@..\src\qxk\qxk.cpp 3 1 9 0 4 QP::QF::stop@181-184@..\src\qxk\qxk.cpp 17 4 84 0 29 QP::QF::run@187-215@..\src\qxk\qxk.cpp 29 5 159 6 40 QP::QActive::start@226-265@..\src\qxk\qxk.cpp 43 8 230 0 54 QXK_sched_@278-331@..\src\qxk\qxk.cpp 59 16 406 0 98 QXK_activate_@334-431@..\src\qxk\qxk.cpp 12 2 69 0 18 QXK_current@434-451@..\src\qxk\qxk.cpp 23 6 130 1 31 QXK_contextSw@455-485@..\src\qxk\qxk.cpp 14 2 110 0 23 QXK_threadExit_@489-511@..\src\qxk\qxk.cpp 3 1 15 0 3 QP::QXMutex::QXMutex@76-78@..\src\qxk\qxk_mutex.cpp 8 2 54 1 11 QP::QXMutex::init@81-91@..\src\qxk\qxk_mutex.cpp 61 9 422 0 95 QP::QXMutex::tryLock@94-188@..\src\qxk\qxk_mutex.cpp 81 11 599 1 133 QP::QXMutex::lock@191-323@..\src\qxk\qxk_mutex.cpp 77 12 578 0 129 QP::QXMutex::unlock@326-454@..\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 30 7 191 6 49 QP::QXThread::start@258-306@..\src\qxk\qxk_xthr.cpp 96 15 480 3 133 QP::QXThread::post_@309-441@..\src\qxk\qxk_xthr.cpp 4 1 23 1 4 QP::QXThread::postLIFO@444-447@..\src\qxk\qxk_xthr.cpp 5 1 49 0 6 QP::QXThread::block_@450-455@..\src\qxk\qxk_xthr.cpp 8 3 58 0 9 QP::QXThread::unblock_@458-466@..\src\qxk\qxk_xthr.cpp 22 3 153 2 40 QP::QXThread::teArm_@469-508@..\src\qxk\qxk_xthr.cpp 11 2 41 0 14 QP::QXThread::teDisarm_@511-524@..\src\qxk\qxk_xthr.cpp 34 file analyzed. ============================================================== NLOC Avg.NLOC AvgCCN Avg.token function_cnt file -------------------------------------------------------------- 6 0.0 0.0 0.0 0 ..\include\qassert.h 234 4.1 1.0 20.6 25 ..\include\qep.hpp 46 3.0 1.0 10.7 3 ..\include\qequeue.hpp 316 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 49 3.0 1.0 10.0 2 ..\include\qmpool.hpp 5 0.0 0.0 0.0 0 ..\include\qpcpp.hpp 397 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 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 8 0.0 0.0 0.0 0 ..\include\qv.hpp 121 6.0 1.0 30.0 2 ..\include\qxk.hpp 323 37.5 5.9 199.0 8 ..\src\qf\qep_hsm.cpp 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.8 139.6 9 ..\src\qf\qf_actq.cpp 73 19.3 2.3 99.3 3 ..\src\qf\qf_defer.cpp 160 19.6 3.3 137.1 7 ..\src\qf\qf_dyn.cpp 119 21.6 2.6 120.6 5 ..\src\qf\qf_mem.cpp 127 20.4 4.4 125.0 5 ..\src\qf\qf_ps.cpp 117 16.6 5.0 110.4 5 ..\src\qf\qf_qact.cpp 163 30.4 4.0 152.4 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 200 22.2 4.8 136.2 8 ..\src\qk\qk.cpp 85 16.5 3.8 96.5 4 ..\src\qv\qv.cpp 279 23.4 4.9 147.0 11 ..\src\qxk\qxk.cpp 241 46.0 7.0 333.6 5 ..\src\qxk\qxk_mutex.cpp 142 32.8 4.5 196.5 4 ..\src\qxk\qxk_sema.cpp 309 21.3 3.5 128.8 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 ------------------------------------------------ 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 ------------------------------------------------------------------------------------------ 4469 17.8 3.2 105.5 177 1 0.01 0.04 @endcode */