Search in sources :

Example 6 with HistRoot

use of org.eclipse.linuxtools.internal.gprof.view.histogram.HistRoot in project linuxtools by eclipse.

the class FunctionHistogramContentProvider method getChildren.

@Override
public Object[] getChildren(Object parentElement) {
    if (parentElement instanceof HistRoot) {
        HistRoot root = (HistRoot) parentElement;
        LinkedList<? extends TreeElement> ret = getFunctionChildrenList(root);
        return ret.toArray();
    }
    return super.getChildren(parentElement);
}
Also used : HistRoot(org.eclipse.linuxtools.internal.gprof.view.histogram.HistRoot)

Example 7 with HistRoot

use of org.eclipse.linuxtools.internal.gprof.view.histogram.HistRoot in project linuxtools by eclipse.

the class FunctionHistogramContentProvider method hasChildren.

@Override
public boolean hasChildren(Object element) {
    if (element instanceof HistRoot) {
        HistRoot root = (HistRoot) element;
        LinkedList<? extends TreeElement> ret = getFunctionChildrenList(root);
        return !ret.isEmpty();
    }
    return super.hasChildren(element);
}
Also used : HistRoot(org.eclipse.linuxtools.internal.gprof.view.histogram.HistRoot)

Aggregations

HistRoot (org.eclipse.linuxtools.internal.gprof.view.histogram.HistRoot)7 GmonDecoder (org.eclipse.linuxtools.internal.gprof.parser.GmonDecoder)2 CGCategory (org.eclipse.linuxtools.internal.gprof.view.histogram.CGCategory)2 HistFunction (org.eclipse.linuxtools.internal.gprof.view.histogram.HistFunction)2