jeco.dmm.reliableDMM
Class SplitProfile
java.lang.Object
jeco.dmm.reliableDMM.SplitProfile
public class SplitProfile
- extends java.lang.Object
This class receive a profile as an input parameter and divides it into n
profiles. Each one of them is a new file using the same name but with a suffix
as 0, 1 , .. , n-1. n is another input parameter.
Each resulting profile is associated to a region of memory. The algorithm to
divide the profile is the LRU over the list of memory regions.
- Author:
- jmcolmenar
Constructor Summary |
SplitProfile(int numBanks,
java.lang.String originalProfilePath,
java.lang.String finalPath,
long limit,
int logReadsAndWrites)
|
Method Summary |
static void |
main(java.lang.String[] args)
|
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numBanks
protected int numBanks
originalProfilePath
protected java.lang.String originalProfilePath
finalPath
protected java.lang.String finalPath
lruList
protected LRU lruList
limit
protected long limit
logReadsAndWrites
protected boolean logReadsAndWrites
SplitProfile
public SplitProfile(int numBanks,
java.lang.String originalProfilePath,
java.lang.String finalPath,
long limit,
int logReadsAndWrites)
throws java.lang.Exception
- Throws:
java.lang.Exception
run
public void run()
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)