use of org.eclipse.linuxtools.internal.gprof.view.histogram.TreeElement in project linuxtools by eclipse.
the class CallGraphContentProvider method getFunctionChildrenList.
protected LinkedList<? extends TreeElement> getFunctionChildrenList(HistRoot root) {
LinkedList<TreeElement> ret = new LinkedList<>();
LinkedList<? extends TreeElement> list = root.getChildren();
for (TreeElement histTreeElem : list) {
LinkedList<? extends TreeElement> partialList = histTreeElem.getChildren();
ret.addAll(partialList);
}
return ret;
}
use of org.eclipse.linuxtools.internal.gprof.view.histogram.TreeElement in project linuxtools by eclipse.
the class FlatHistogramContentProvider method getFunctionChildrenList.
@Override
protected LinkedList<? extends TreeElement> getFunctionChildrenList(HistRoot root) {
LinkedList<? extends TreeElement> list = super.getFunctionChildrenList(root);
LinkedList<TreeElement> ret = new LinkedList<>();
for (TreeElement histTreeElem : list) {
LinkedList<? extends TreeElement> partialList = histTreeElem.getChildren();
ret.addAll(partialList);
}
return ret;
}
use of org.eclipse.linuxtools.internal.gprof.view.histogram.TreeElement in project linuxtools by eclipse.
the class FunctionHistogramContentProvider method getFunctionChildrenList.
protected LinkedList<? extends TreeElement> getFunctionChildrenList(HistRoot root) {
LinkedList<TreeElement> ret = new LinkedList<>();
LinkedList<? extends TreeElement> list = root.getChildren();
for (TreeElement histTreeElem : list) {
LinkedList<? extends TreeElement> partialList = histTreeElem.getChildren();
ret.addAll(partialList);
}
return ret;
}
use of org.eclipse.linuxtools.internal.gprof.view.histogram.TreeElement in project linuxtools by eclipse.
the class GmonViewer method handleOpenEvent.
@Override
protected void handleOpenEvent(OpenEvent event) {
IStructuredSelection selection = (IStructuredSelection) event.getSelection();
TreeElement element = (TreeElement) selection.getFirstElement();
if (element != null) {
String s = element.getSourcePath();
if (s == null || "??".equals(s)) {
// nothing to do here.
return;
} else {
int lineNumber = element.getSourceLine();
IBinaryObject exec = ((HistRoot) element.getRoot()).decoder.getProgram();
STLink2SourceSupport.openSourceFileAtLocation(exec, s, lineNumber);
}
}
}
use of org.eclipse.linuxtools.internal.gprof.view.histogram.TreeElement in project linuxtools by eclipse.
the class CallsProfField method getNumber.
@Override
public Number getNumber(Object obj) {
TreeElement e = (TreeElement) obj;
int i = e.getCalls();
if (i == -1) {
return 0L;
}
return i;
}
Aggregations