Mercurial > hg > truffle
comparison src/share/tools/IdealGraphVisualizer/Layout/src/com/sun/hotspot/igv/layout/LayoutGraph.java @ 21146:33ff6b03fad1
add support for control flow window and basic block view on graphs
Contributed-by: Michael Haupt <michael.haupt@oracle.com>
Contributed-by: Peter Hofer <peter.hofer@jku.at>
Contributed-by: Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
author | Michael Haupt <michael.haupt@oracle.com> |
---|---|
date | Wed, 29 Apr 2015 08:31:28 +0200 |
parents | 2b2ac41e70dd |
children |
comparison
equal
deleted
inserted
replaced
21142:0b221b4ad707 | 21146:33ff6b03fad1 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
181 } | 181 } |
182 | 182 |
183 public Set<Vertex> findRootVertices() { | 183 public Set<Vertex> findRootVertices() { |
184 return findRootVertices(new HashSet<Vertex>()); | 184 return findRootVertices(new HashSet<Vertex>()); |
185 } | 185 } |
186 | |
187 public SortedSet<Cluster> getClusters() { | |
188 | |
189 SortedSet<Cluster> clusters = new TreeSet<Cluster>(); | |
190 for (Vertex v : getVertices()) { | |
191 if (v.getCluster() != null) { | |
192 clusters.add(v.getCluster()); | |
193 } | |
194 } | |
195 | |
196 return clusters; | |
197 } | |
186 } | 198 } |