Don't try to show unallocated or uninitialized profiling data

pull/3236/head
Evil Eye 6 months ago
parent 81ceb497a1
commit 46c8133a72

@ -853,10 +853,7 @@ namespace MWLua
else if (selectedPtr.isEmpty()) else if (selectedPtr.isEmpty())
out << std::setw(valueW * 2) << "NA (not selected) "; out << std::setw(valueW * 2) << "NA (not selected) ";
else if (!selectedScripts || !selectedScripts->hasScript(i)) else if (!selectedScripts || !selectedScripts->hasScript(i))
{ out << std::setw(valueW * 2) << "NA";
out << std::setw(valueW) << "-";
outMemSize(selectedStats[i].mMemoryUsage);
}
else else
{ {
out << std::setw(valueW) << static_cast<int64_t>(selectedStats[i].mAvgInstructionCount); out << std::setw(valueW) << static_cast<int64_t>(selectedStats[i].mAvgInstructionCount);

Loading…
Cancel
Save