|
|
@ -43,7 +43,10 @@ static TQStringList knownTypes()
|
|
|
|
<< "I2mr" << "D2mr" << "D2mw"
|
|
|
|
<< "I2mr" << "D2mr" << "D2mw"
|
|
|
|
|
|
|
|
|
|
|
|
<< "Smp" << "Sys" << "User"
|
|
|
|
<< "Smp" << "Sys" << "User"
|
|
|
|
<< "L1m" << "L2m" << "CEst";
|
|
|
|
// Valgrind < 3.6.0
|
|
|
|
|
|
|
|
<< "L1m" << "L2m" << "CEst"
|
|
|
|
|
|
|
|
// Valgrind 3.6.0: L2 events changed to to LL (last level) events
|
|
|
|
|
|
|
|
<< "L1m" << "LLm" << "CEst";
|
|
|
|
|
|
|
|
|
|
|
|
return l;
|
|
|
|
return l;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -53,7 +56,8 @@ static TQString knownFormula(TQString name)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (name =="L1m") return TQString("I1mr + D1mr + D1mw");
|
|
|
|
if (name =="L1m") return TQString("I1mr + D1mr + D1mw");
|
|
|
|
if (name =="L2m") return TQString("I2mr + D2mr + D2mw");
|
|
|
|
if (name =="L2m") return TQString("I2mr + D2mr + D2mw");
|
|
|
|
if (name =="CEst") return TQString("Ir + 10 L1m + 100 L2m");
|
|
|
|
if (name =="LLm") return TQString("I2mr + D2mr + D2mw");
|
|
|
|
|
|
|
|
if (name =="CEst") return TQString("Ir + 10 L1m + 100 L2m + 100 LLm");
|
|
|
|
|
|
|
|
|
|
|
|
return TQString();
|
|
|
|
return TQString();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -69,11 +73,15 @@ static TQString knownLongName(TQString name)
|
|
|
|
if (name =="I2mr") return i18n("L2 Instr. Fetch Miss");
|
|
|
|
if (name =="I2mr") return i18n("L2 Instr. Fetch Miss");
|
|
|
|
if (name =="D2mr") return i18n("L2 Data Read Miss");
|
|
|
|
if (name =="D2mr") return i18n("L2 Data Read Miss");
|
|
|
|
if (name =="D2mw") return i18n("L2 Data Write Miss");
|
|
|
|
if (name =="D2mw") return i18n("L2 Data Write Miss");
|
|
|
|
|
|
|
|
if (name =="ILmr") return i18n("LL Instr. Fetch Miss");
|
|
|
|
|
|
|
|
if (name =="DLmr") return i18n("LL Data Read Miss");
|
|
|
|
|
|
|
|
if (name =="DLmw") return i18n("LL Data Write Miss");
|
|
|
|
if (name =="Smp") return i18n("Samples");
|
|
|
|
if (name =="Smp") return i18n("Samples");
|
|
|
|
if (name =="Sys") return i18n("System Time");
|
|
|
|
if (name =="Sys") return i18n("System Time");
|
|
|
|
if (name =="User") return i18n("User Time");
|
|
|
|
if (name =="User") return i18n("User Time");
|
|
|
|
if (name =="L1m") return i18n("L1 Miss Sum");
|
|
|
|
if (name =="L1m") return i18n("L1 Miss Sum");
|
|
|
|
if (name =="L2m") return i18n("L2 Miss Sum");
|
|
|
|
if (name =="L2m") return i18n("L2 Miss Sum");
|
|
|
|
|
|
|
|
if (name =="LLm") return i18n("LL Miss Sum");
|
|
|
|
if (name =="CEst") return i18n("Cycle Estimation");
|
|
|
|
if (name =="CEst") return i18n("Cycle Estimation");
|
|
|
|
|
|
|
|
|
|
|
|
return TQString();
|
|
|
|
return TQString();
|
|
|
@ -201,7 +209,11 @@ void Configuration::readOptions(KConfig* kconfig)
|
|
|
|
c->_colors.clear();
|
|
|
|
c->_colors.clear();
|
|
|
|
|
|
|
|
|
|
|
|
// colors for default cost types:
|
|
|
|
// colors for default cost types:
|
|
|
|
// red for L2 misses, green for L1 misses, blue for normal accesses
|
|
|
|
// red for L2 or LL misses, green for L1 misses, blue for normal accesses
|
|
|
|
|
|
|
|
c->color("CostType-ILmr")->color = TQColor(240, 0, 0);
|
|
|
|
|
|
|
|
c->color("CostType-DLmr")->color = TQColor(180,40,40);
|
|
|
|
|
|
|
|
c->color("CostType-DLmw")->color = TQColor(120,80,80);
|
|
|
|
|
|
|
|
|
|
|
|
c->color("CostType-I2mr")->color = TQColor(240, 0, 0);
|
|
|
|
c->color("CostType-I2mr")->color = TQColor(240, 0, 0);
|
|
|
|
c->color("CostType-D2mr")->color = TQColor(180,40,40);
|
|
|
|
c->color("CostType-D2mr")->color = TQColor(180,40,40);
|
|
|
|
c->color("CostType-D2mw")->color = TQColor(120,80,80);
|
|
|
|
c->color("CostType-D2mw")->color = TQColor(120,80,80);
|
|
|
|