use of org.eclipse.linuxtools.internal.gprof.view.histogram.TreeElement in project linuxtools by eclipse.
the class SampleProfField method getValue.
@Override
public String getValue(Object obj) {
TreeElement e = (TreeElement) obj;
int i = e.getSamples();
if (i == -1) {
// $NON-NLS-1$
return "";
}
if (samples) {
return String.valueOf(i);
} else {
double prof_rate = getProfRate();
if (prof_rate == UNINITIALIZED) {
// $NON-NLS-1$
return "?";
}
return getValue(i, prof_rate);
}
}
use of org.eclipse.linuxtools.internal.gprof.view.histogram.TreeElement in project linuxtools by eclipse.
the class SampleProfField method getNumber.
@Override
public Number getNumber(Object obj) {
TreeElement e = (TreeElement) obj;
int i = e.getSamples();
if (i == -1) {
return 0L;
}
return i;
}
Aggregations