|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectContextSplitterFactory
public class ContextSplitterFactory
This factory creates Splitters from map files. The splitters partition the data based upon the the caller (i.e., which static callgraph edge was taken).
| Nested Class Summary | |
|---|---|
static class |
ContextSplitterFactory.MapfileEntry
Simple record type to store a map file entry. |
static class |
ContextSplitterFactory.PptNameAndSplitters
Simple record type to store a PptName and Splitter array. |
| Field Summary | |
|---|---|
static Logger |
debug
Debug tracer. |
static int |
dkconfig_granularity
Enumeration (integer). |
static int |
GRAIN_CLASS
Callsite granularity at the class level. |
static int |
GRAIN_LINE
Callsite granularity at the line level. |
static int |
GRAIN_METHOD
Callsite granularity at the method level. |
| Constructor Summary | |
|---|---|
ContextSplitterFactory()
|
|
| Method Summary | |
|---|---|
static void |
load_mapfiles_into_splitterlist(Collection<File> files,
int grain)
|
static ContextSplitterFactory.PptNameAndSplitters[] |
make_context_splitters(ContextSplitterFactory.MapfileEntry[] entries,
int grain)
|
static ContextSplitterFactory.MapfileEntry[] |
parse_mapfile(File mapfile)
Read and parse a map file. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Logger debug
public static final int GRAIN_LINE
public static final int GRAIN_METHOD
public static final int GRAIN_CLASS
public static int dkconfig_granularity
| Constructor Detail |
|---|
public ContextSplitterFactory()
| Method Detail |
|---|
public static void load_mapfiles_into_splitterlist(Collection<File> files,
int grain)
files - set of File objects to read fromgrain - one of the GRAIN constants defined in this class
Read all the map files in the given collection, create callsite
splitters from them, and put the splitters into SplitterList.
public static ContextSplitterFactory.MapfileEntry[] parse_mapfile(File mapfile)
throws IOException
IOException
public static ContextSplitterFactory.PptNameAndSplitters[] make_context_splitters(ContextSplitterFactory.MapfileEntry[] entries,
int grain)
grain - one of the GRAIN constants defined in this class
Given map file data, create splitters given the requested
granularity.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||