|
gem5 [DEVELOP-FOR-25.0]
|
#include <compute_unit.hh>
Public Member Functions | |
| ComputeUnitStats (statistics::Group *parent, int n_wf) | |
Public Member Functions inherited from gem5::statistics::Group | |
| Group (Group *parent, const char *name=nullptr) | |
| Construct a new statistics group. | |
| virtual | ~Group () |
| virtual void | regStats () |
| Callback to set stat parameters. | |
| virtual void | resetStats () |
| Callback to reset stats. | |
| virtual void | preDumpStats () |
| Callback before stats are dumped. | |
| void | addStat (statistics::Info *info) |
| Register a stat with this group. | |
| const std::map< std::string, Group * > & | getStatGroups () const |
| Get all child groups associated with this object. | |
| const std::vector< Info * > & | getStats () const |
| Get all stats associated with this object. | |
| void | addStatGroup (const char *name, Group *block) |
| Add a stat block as a child of this block. | |
| const Info * | resolveStat (std::string name) const |
| Resolve a stat by its name within this group. | |
| void | mergeStatGroup (Group *block) |
| Merge the contents (stats & children) of a block to this block. | |
| Group ()=delete | |
| Group (const Group &)=delete | |
| Group & | operator= (const Group &)=delete |
Definition at line 1056 of file compute_unit.hh.
| gem5::ComputeUnit::ComputeUnitStats::ComputeUnitStats | ( | statistics::Group * | parent, |
| int | n_wf ) |
Definition at line 2434 of file compute_unit.cc.
References activeLanesPerGMemInstrDist, activeLanesPerLMemInstrDist, ADD_STAT, argMemInsts, argReads, argWrites, completedWfs, completedWGs, gem5::ComputeUnit::ComputeUnit(), controlFlowDivergenceDist, gem5::csprintf(), dynamicFlatMemInstrCnt, dynamicGMemInstrCnt, dynamicLMemInstrCnt, execRateDist, flatLDSInsts, flatLDSInstsPerWF, flatVMemInsts, flatVMemInstsPerWF, globalMemInsts, globalReads, globalWrites, gem5::statistics::Group::Group(), groupMemInsts, groupReads, groupWrites, headTailLatency, hitsPerTLBLevel, gem5::ArmISA::i, instCyclesLdsPerSimd, instCyclesSALU, instCyclesScMemPerSimd, instCyclesVALU, instCyclesVMemPerSimd, instInterleave, ipc, kernargMemInsts, kernargReads, kernargWrites, ldsBankAccesses, ldsBankConflictDist, ldsNoFlatInsts, ldsNoFlatInstsPerWF, numALUInstsExecuted, numCASOps, numFailedCASOps, numInstrExecuted, numTimesWgBlockedDueSgprAlloc, numTimesWgBlockedDueVgprAlloc, numVecOpsExecuted, numVecOpsExecutedF16, numVecOpsExecutedF32, numVecOpsExecutedF64, numVecOpsExecutedFMA16, numVecOpsExecutedFMA32, numVecOpsExecutedFMA64, numVecOpsExecutedMAC16, numVecOpsExecutedMAC32, numVecOpsExecutedMAC64, numVecOpsExecutedMAD16, numVecOpsExecutedMAD32, numVecOpsExecutedMAD64, numVecOpsExecutedMFMA, numVecOpsExecutedMFMAF16, numVecOpsExecutedMFMAF32, numVecOpsExecutedMFMAF64, numVecOpsExecutedMFMAI8, numVecOpsExecutedTwoOpFP, gem5::ComputeUnit::numVectorALUs, gem5::statistics::oneline, pageDivergenceDist, gem5::statistics::pdf, privMemInsts, privReads, privWrites, readonlyMemInsts, readonlyReads, readonlyWrites, sALUInsts, sALUInstsPerWF, scalarMemInstsPerKiloInst, scalarMemReads, scalarMemReadsPerKiloInst, scalarMemReadsPerWF, scalarMemWrites, scalarMemWritesPerKiloInst, scalarMemWritesPerWF, spillMemInsts, spillReads, spillWrites, threadCyclesVALU, tlbCycles, tlbLatency, tlbRequests, totalCycles, vALUInsts, vALUInstsPerWF, vALUUtilization, vectorMemInstsPerKiloInst, vectorMemReads, vectorMemReadsPerKiloInst, vectorMemReadsPerWF, vectorMemWrites, vectorMemWritesPerKiloInst, vectorMemWritesPerWF, vpc, vpc_f16, vpc_f32, vpc_f64, waveLevelParallelism, gem5::ComputeUnit::wfSize(), wgBlockedDueBarrierAllocation, and wgBlockedDueLdsAllocation.
| statistics::Distribution gem5::ComputeUnit::ComputeUnitStats::activeLanesPerGMemInstrDist |
Definition at line 1186 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Distribution gem5::ComputeUnit::ComputeUnitStats::activeLanesPerLMemInstrDist |
Definition at line 1187 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::argMemInsts |
Definition at line 1101 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::argReads |
Definition at line 1099 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::argWrites |
Definition at line 1100 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::completedWfs |
Definition at line 1196 of file compute_unit.hh.
Referenced by ComputeUnitStats(), and gem5::VegaISA::Inst_SOPP__S_ENDPGM::execute().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::completedWGs |
Definition at line 1197 of file compute_unit.hh.
Referenced by ComputeUnitStats(), and gem5::VegaISA::Inst_SOPP__S_ENDPGM::execute().
| statistics::Distribution gem5::ComputeUnit::ComputeUnitStats::controlFlowDivergenceDist |
Definition at line 1185 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::dynamicFlatMemInstrCnt |
Definition at line 1138 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::dynamicGMemInstrCnt |
Definition at line 1136 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::dynamicLMemInstrCnt |
Definition at line 1139 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Distribution gem5::ComputeUnit::ComputeUnitStats::execRateDist |
Definition at line 1149 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::flatLDSInsts |
Definition at line 1072 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::flatLDSInstsPerWF |
Definition at line 1073 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::flatVMemInsts |
Definition at line 1070 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::flatVMemInstsPerWF |
Definition at line 1071 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::globalMemInsts |
Definition at line 1098 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::globalReads |
Definition at line 1096 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::globalWrites |
Definition at line 1097 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::groupMemInsts |
Definition at line 1107 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::groupReads |
Definition at line 1105 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::groupWrites |
Definition at line 1106 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Distribution gem5::ComputeUnit::ComputeUnitStats::headTailLatency |
Definition at line 1201 of file compute_unit.hh.
Referenced by ComputeUnitStats(), and gem5::ComputeUnit::DataPort::processMemRespEvent().
| statistics::Vector gem5::ComputeUnit::ComputeUnitStats::hitsPerTLBLevel |
Definition at line 1127 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Vector gem5::ComputeUnit::ComputeUnitStats::instCyclesLdsPerSimd |
Definition at line 1094 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::instCyclesSALU |
Definition at line 1065 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Vector gem5::ComputeUnit::ComputeUnitStats::instCyclesScMemPerSimd |
Definition at line 1093 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::instCyclesVALU |
Definition at line 1064 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Vector gem5::ComputeUnit::ComputeUnitStats::instCyclesVMemPerSimd |
Definition at line 1092 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::VectorDistribution gem5::ComputeUnit::ComputeUnitStats::instInterleave |
Definition at line 1207 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::ipc |
Definition at line 1184 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::kernargMemInsts |
Definition at line 1116 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::kernargReads |
Definition at line 1114 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::kernargWrites |
Definition at line 1115 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::ldsBankAccesses |
Definition at line 1129 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Distribution gem5::ComputeUnit::ComputeUnitStats::ldsBankConflictDist |
Definition at line 1130 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::ldsNoFlatInsts |
Definition at line 1068 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::ldsNoFlatInstsPerWF |
Definition at line 1069 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::numALUInstsExecuted |
Definition at line 1189 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numCASOps |
Definition at line 1194 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numFailedCASOps |
Definition at line 1195 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numInstrExecuted |
Definition at line 1146 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numTimesWgBlockedDueSgprAlloc |
Definition at line 1193 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numTimesWgBlockedDueVgprAlloc |
Definition at line 1191 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecuted |
Definition at line 1151 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedF16 |
Definition at line 1153 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedF32 |
Definition at line 1155 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedF64 |
Definition at line 1157 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedFMA16 |
Definition at line 1159 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedFMA32 |
Definition at line 1160 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedFMA64 |
Definition at line 1161 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedMAC16 |
Definition at line 1163 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedMAC32 |
Definition at line 1164 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedMAC64 |
Definition at line 1165 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedMAD16 |
Definition at line 1167 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedMAD32 |
Definition at line 1168 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedMAD64 |
Definition at line 1169 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedMFMA |
Definition at line 1171 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedMFMAF16 |
Definition at line 1173 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedMFMAF32 |
Definition at line 1174 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedMFMAF64 |
Definition at line 1175 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedMFMAI8 |
Definition at line 1172 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::numVecOpsExecutedTwoOpFP |
Definition at line 1177 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Distribution gem5::ComputeUnit::ComputeUnitStats::pageDivergenceDist |
Definition at line 1134 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::privMemInsts |
Definition at line 1110 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::privReads |
Definition at line 1108 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::privWrites |
Definition at line 1109 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::readonlyMemInsts |
Definition at line 1113 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::readonlyReads |
Definition at line 1111 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::readonlyWrites |
Definition at line 1112 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::sALUInsts |
Definition at line 1062 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::sALUInstsPerWF |
Definition at line 1063 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::scalarMemInstsPerKiloInst |
Definition at line 1088 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::scalarMemReads |
Definition at line 1080 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::scalarMemReadsPerKiloInst |
Definition at line 1086 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::scalarMemReadsPerWF |
Definition at line 1081 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::scalarMemWrites |
Definition at line 1078 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::scalarMemWritesPerKiloInst |
Definition at line 1087 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::scalarMemWritesPerWF |
Definition at line 1079 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::spillMemInsts |
Definition at line 1104 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::spillReads |
Definition at line 1102 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::spillWrites |
Definition at line 1103 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::threadCyclesVALU |
Definition at line 1066 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::tlbCycles |
Definition at line 1123 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::tlbLatency |
Definition at line 1124 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::tlbRequests |
Definition at line 1122 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::totalCycles |
Definition at line 1179 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::vALUInsts |
Definition at line 1060 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::vALUInstsPerWF |
Definition at line 1061 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::vALUUtilization |
Definition at line 1067 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::vectorMemInstsPerKiloInst |
Definition at line 1085 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::vectorMemReads |
Definition at line 1076 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::vectorMemReadsPerKiloInst |
Definition at line 1083 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::vectorMemReadsPerWF |
Definition at line 1077 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::vectorMemWrites |
Definition at line 1074 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::vectorMemWritesPerKiloInst |
Definition at line 1084 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::vectorMemWritesPerWF |
Definition at line 1075 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::vpc |
Definition at line 1180 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::vpc_f16 |
Definition at line 1181 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::vpc_f32 |
Definition at line 1182 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Formula gem5::ComputeUnit::ComputeUnitStats::vpc_f64 |
Definition at line 1183 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Distribution gem5::ComputeUnit::ComputeUnitStats::waveLevelParallelism |
Definition at line 1118 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::wgBlockedDueBarrierAllocation |
Definition at line 1141 of file compute_unit.hh.
Referenced by ComputeUnitStats().
| statistics::Scalar gem5::ComputeUnit::ComputeUnitStats::wgBlockedDueLdsAllocation |
Definition at line 1142 of file compute_unit.hh.
Referenced by ComputeUnitStats().