comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiTypeProfile.java @ 5346:4c3d953f8131

added mechanism (enabled by -G:PICache and -G:PiFilter) for saving/loading method profiling info to/from disk
author Doug Simon <doug.simon@oracle.com>
date Thu, 03 May 2012 13:39:45 +0200
parents 439ca5ecc7dc
children 2e9a5365dfb0
comparison
equal deleted inserted replaced
5345:00803ae428d2 5346:4c3d953f8131
35 35
36 /** 36 /**
37 * A profiled type that has a probability. Profiled types are naturally sorted in 37 * A profiled type that has a probability. Profiled types are naturally sorted in
38 * descending order of their probabilities. 38 * descending order of their probabilities.
39 */ 39 */
40 public static class ProfiledType implements Comparable<ProfiledType> { 40 public static class ProfiledType implements Comparable<ProfiledType>, Serializable {
41 private static final long serialVersionUID = 7838575753661305744L;
41 public final RiResolvedType type; 42 public final RiResolvedType type;
42 public final double probability; 43 public final double probability;
43 44
44 public ProfiledType(RiResolvedType type, double probability) { 45 public ProfiledType(RiResolvedType type, double probability) {
45 this.type = type; 46 this.type = type;