scale.common
Class ProfileInfo

java.lang.Object
  extended by scale.common.ProfileInfo

public class ProfileInfo
extends java.lang.Object

An instance of this class is used to hold the profilie information generated from a previous execution of an instrumented CFG..

$Id: ProfileInfo.java,v 1.2 2007-10-29 13:36:05 burrill Exp $

Copyright 2007 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.


Field Summary
 int[] blockArray
          The block counts for each basic block in the CFG.
 int[] edgeArray
          The edge counts for each edge in the CFG.
 int hash
          The characteristic value for the CFG.
 int[] icArray
          A map from loop numbers to instruction counts.
 IntMap<long[]> loopHistMap
          A map from a loop number to a loop trip count histogram.
 int numLoops
          The number of loops in the CFG.
 HashMap<java.lang.Long,java.lang.Long> pathMap
          A map from path numbers to path frequencies (Integer -> Integer).
 int[] ucArray
          A map from loop numbers to unroll counts.
 
Constructor Summary
ProfileInfo(int hash)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hash

public int hash
The characteristic value for the CFG. This is used to determine if the CFG is the same as the ione that was instrumented.


numLoops

public int numLoops
The number of loops in the CFG.


blockArray

public int[] blockArray
The block counts for each basic block in the CFG.


edgeArray

public int[] edgeArray
The edge counts for each edge in the CFG.


pathMap

public HashMap<java.lang.Long,java.lang.Long> pathMap
A map from path numbers to path frequencies (Integer -> Integer).


loopHistMap

public IntMap<long[]> loopHistMap
A map from a loop number to a loop trip count histogram.


ucArray

public int[] ucArray
A map from loop numbers to unroll counts.


icArray

public int[] icArray
A map from loop numbers to instruction counts.

Constructor Detail

ProfileInfo

public ProfileInfo(int hash)
Parameters:
hash - is characteristic value for the CFG.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object