Java Code Examples for com.sun.hotspot.igv.data.InputGraph#getNodes()
The following examples show how to use
com.sun.hotspot.igv.data.InputGraph#getNodes() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BytecodeNode.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public BytecodeNode(InputBytecode bytecode, InputGraph graph, String bciValue) { super(Children.LEAF); this.setDisplayName(bytecode.getBci() + " " + bytecode.getName()); bciValue = bytecode.getBci() + " " + bciValue; bciValue = bciValue.trim(); Properties.PropertySelector<InputNode> selector = new Properties.PropertySelector<InputNode>(graph.getNodes()); StringPropertyMatcher matcher = new StringPropertyMatcher("bci", bciValue); List<InputNode> nodeList = selector.selectMultiple(matcher); if (nodeList.size() > 0) { nodes = new HashSet<InputNode>(); for (InputNode n : nodeList) { nodes.add(n); } this.setDisplayName(this.getDisplayName() + " (" + nodes.size() + " nodes)"); } }
Example 2
Source File: BytecodeNode.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public BytecodeNode(InputBytecode bytecode, InputGraph graph, String bciValue) { super(Children.LEAF); this.setDisplayName(bytecode.getBci() + " " + bytecode.getName()); bciValue = bytecode.getBci() + " " + bciValue; bciValue = bciValue.trim(); Properties.PropertySelector<InputNode> selector = new Properties.PropertySelector<InputNode>(graph.getNodes()); StringPropertyMatcher matcher = new StringPropertyMatcher("bci", bciValue); List<InputNode> nodeList = selector.selectMultiple(matcher); if (nodeList.size() > 0) { nodes = new HashSet<InputNode>(); for (InputNode n : nodeList) { nodes.add(n); } this.setDisplayName(this.getDisplayName() + " (" + nodes.size() + " nodes)"); } }
Example 3
Source File: BytecodeNode.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public BytecodeNode(InputBytecode bytecode, InputGraph graph, String bciValue) { super(Children.LEAF); this.setDisplayName(bytecode.getBci() + " " + bytecode.getName()); bciValue = bytecode.getBci() + " " + bciValue; bciValue = bciValue.trim(); Properties.PropertySelector<InputNode> selector = new Properties.PropertySelector<InputNode>(graph.getNodes()); StringPropertyMatcher matcher = new StringPropertyMatcher("bci", bciValue); List<InputNode> nodeList = selector.selectMultiple(matcher); if (nodeList.size() > 0) { nodes = new HashSet<InputNode>(); for (InputNode n : nodeList) { nodes.add(n); } this.setDisplayName(this.getDisplayName() + " (" + nodes.size() + " nodes)"); } }
Example 4
Source File: BytecodeNode.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public BytecodeNode(InputBytecode bytecode, InputGraph graph, String bciValue) { super(Children.LEAF); this.setDisplayName(bytecode.getBci() + " " + bytecode.getName()); bciValue = bytecode.getBci() + " " + bciValue; bciValue = bciValue.trim(); Properties.PropertySelector<InputNode> selector = new Properties.PropertySelector<InputNode>(graph.getNodes()); StringPropertyMatcher matcher = new StringPropertyMatcher("bci", bciValue); List<InputNode> nodeList = selector.selectMultiple(matcher); if (nodeList.size() > 0) { nodes = new HashSet<InputNode>(); for (InputNode n : nodeList) { nodes.add(n); } this.setDisplayName(this.getDisplayName() + " (" + nodes.size() + " nodes)"); } }
Example 5
Source File: NodeQuickSearch.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private List<InputNode> findMatches(String name, String value, InputGraph inputGraph, SearchResponse response) { try { RegexpPropertyMatcher matcher = new RegexpPropertyMatcher(name, value, Pattern.CASE_INSENSITIVE); Properties.PropertySelector<InputNode> selector = new Properties.PropertySelector<>(inputGraph.getNodes()); List<InputNode> matches = selector.selectMultiple(matcher); return matches.size() == 0 ? null : matches; } catch (Exception e) { final String msg = e.getMessage(); response.addResult(new Runnable() { @Override public void run() { Message desc = new NotifyDescriptor.Message("An exception occurred during the search, " + "perhaps due to a malformed query string:\n" + msg, NotifyDescriptor.WARNING_MESSAGE); DialogDisplayer.getDefault().notify(desc); } }, "(Error during search)" ); } return null; }
Example 6
Source File: BytecodeNode.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public BytecodeNode(InputBytecode bytecode, InputGraph graph, String bciValue) { super(Children.LEAF); String displayName = bytecode.getBci() + " " + bytecode.getName() + " " + bytecode.getOperands(); bciValue = bytecode.getBci() + " " + bciValue; bciValue = bciValue.trim(); Properties.PropertySelector<InputNode> selector = new Properties.PropertySelector<>(graph.getNodes()); StringPropertyMatcher matcher = new StringPropertyMatcher("bci", bciValue); List<InputNode> nodeList = selector.selectMultiple(matcher); if (nodeList.size() > 0) { nodes = new LinkedHashSet<>(); for (InputNode n : nodeList) { nodes.add(n); } displayName += " (" + nodes.size() + " nodes)"; } if (bytecode.getComment() != null) { displayName += " // " + bytecode.getComment(); } this.setDisplayName(displayName); }
Example 7
Source File: BytecodeNode.java From hottub with GNU General Public License v2.0 | 6 votes |
public BytecodeNode(InputBytecode bytecode, InputGraph graph, String bciValue) { super(Children.LEAF); this.setDisplayName(bytecode.getBci() + " " + bytecode.getName()); bciValue = bytecode.getBci() + " " + bciValue; bciValue = bciValue.trim(); Properties.PropertySelector<InputNode> selector = new Properties.PropertySelector<InputNode>(graph.getNodes()); StringPropertyMatcher matcher = new StringPropertyMatcher("bci", bciValue); List<InputNode> nodeList = selector.selectMultiple(matcher); if (nodeList.size() > 0) { nodes = new HashSet<InputNode>(); for (InputNode n : nodeList) { nodes.add(n); } this.setDisplayName(this.getDisplayName() + " (" + nodes.size() + " nodes)"); } }
Example 8
Source File: BytecodeNode.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public BytecodeNode(InputBytecode bytecode, InputGraph graph, String bciValue) { super(Children.LEAF); this.setDisplayName(bytecode.getBci() + " " + bytecode.getName()); bciValue = bytecode.getBci() + " " + bciValue; bciValue = bciValue.trim(); Properties.PropertySelector<InputNode> selector = new Properties.PropertySelector<InputNode>(graph.getNodes()); StringPropertyMatcher matcher = new StringPropertyMatcher("bci", bciValue); List<InputNode> nodeList = selector.selectMultiple(matcher); if (nodeList.size() > 0) { nodes = new HashSet<InputNode>(); for (InputNode n : nodeList) { nodes.add(n); } this.setDisplayName(this.getDisplayName() + " (" + nodes.size() + " nodes)"); } }
Example 9
Source File: BytecodeNode.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public BytecodeNode(InputBytecode bytecode, InputGraph graph, String bciValue) { super(Children.LEAF); this.setDisplayName(bytecode.getBci() + " " + bytecode.getName()); bciValue = bytecode.getBci() + " " + bciValue; bciValue = bciValue.trim(); Properties.PropertySelector<InputNode> selector = new Properties.PropertySelector<InputNode>(graph.getNodes()); StringPropertyMatcher matcher = new StringPropertyMatcher("bci", bciValue); List<InputNode> nodeList = selector.selectMultiple(matcher); if (nodeList.size() > 0) { nodes = new HashSet<InputNode>(); for (InputNode n : nodeList) { nodes.add(n); } this.setDisplayName(this.getDisplayName() + " (" + nodes.size() + " nodes)"); } }