95 int numDecPct,
int numDecVal)
98 m_numDecPct(numDecPct),
99 m_numDecVal(numDecVal),
141 int nUnitsPct = std::max(0,
m_annotWidth[mId] - nNonUnitsPct);
142 int nUnitsVal = std::max(0,
m_annotWidth[mId] - nNonUnitsVal);
153 m_os.setf(std::ios_base::fmtflags(0), std::ios_base::floatfield);
154 m_os << std::right << std::noshowpos;
155 m_os << std::showbase;
162 m_os <<
"Metric definitions. column: name (nice-name) [units] {details}:\n";
168 m_os << std::fixed << std::setw(4) << std::setfill(
' ');
195 double val = metricVal;
200 if (!m->
isPercent() && metricTot != 0.0) {
201 val = (metricVal / metricTot) * 100.0;
207 m_os << std::scientific
214 m_os << std::setfill(
' ') << val <<
"%";
220 m_os << std::scientific
226 m_os << std::noshowpoint << std::setprecision(0);
232 m_os << std::setfill(
' ') << val;
std::vector< double > m_sciFmtLoThrsh_pct
std::vector< bool > m_dispPercent
void genCol(uint mid, double metricVal, double metricTot, Flag flg=Flag_NULL)
std::vector< int > m_annotWidth
std::vector< double > m_sciFmtLoThrsh_val
virtual std::string toString() const
bool doDispPercent() const
void genColHeaderSummary()
ColumnFormatter(const Prof::Metric::Mgr &metricMgr, std::ostream &os, int numDecPct, int numDecVal)
bool isDisplayed(uint mId)
const Prof::Metric::Mgr & m_mMgr
std::vector< bool > m_isForceable
Metric::ADesc * metric(uint i)
void genBlankCol(uint mid)
std::vector< double > m_sciFmtHiThrsh_pct
std::vector< double > m_sciFmtHiThrsh_val