Search in sources :

Example 6 with MassifHeapTreeNode

use of org.eclipse.linuxtools.internal.valgrind.massif.MassifHeapTreeNode in project linuxtools by eclipse.

the class ChartLocationsDialog method setInput.

public void setInput(MassifSnapshot snapshot) {
    MassifHeapTreeNode node = snapshot.getRoot();
    allocs = new ArrayList<>(node.getChildren().length);
    for (MassifHeapTreeNode alloc : node.getChildren()) {
        if (alloc.hasSourceFile()) {
            allocs.add(alloc);
        }
    }
    super.setInput(allocs);
}
Also used : MassifHeapTreeNode(org.eclipse.linuxtools.internal.valgrind.massif.MassifHeapTreeNode)

Aggregations

MassifHeapTreeNode (org.eclipse.linuxtools.internal.valgrind.massif.MassifHeapTreeNode)6 Test (org.junit.Test)5 ILaunchConfiguration (org.eclipse.debug.core.ILaunchConfiguration)4 MassifViewPart (org.eclipse.linuxtools.internal.valgrind.massif.MassifViewPart)4 ILaunchConfigurationWorkingCopy (org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)2 TreePath (org.eclipse.jface.viewers.TreePath)2 TreeSelection (org.eclipse.jface.viewers.TreeSelection)2 TreeViewer (org.eclipse.jface.viewers.TreeViewer)2 MassifSnapshot (org.eclipse.linuxtools.internal.valgrind.massif.MassifSnapshot)2 StructuredSelection (org.eclipse.jface.viewers.StructuredSelection)1 ChartLocationsDialog (org.eclipse.linuxtools.internal.valgrind.massif.charting.ChartLocationsDialog)1 Shell (org.eclipse.swt.widgets.Shell)1