Public Member Functions | |
void | open (final String file) throws IOException |
void | printInfo (PrintStream out) |
float | getMetric (int cct_id, int metric_id) throws IOException |
void | dispose () throws IOException |
Static Public Member Functions | |
static void | main (String[]argv) |
Static Public Attributes | |
static final float | DEFAULT_METRIC = 0.0f |
Protected Member Functions | |
boolean | isTypeFormatCorrect (long type) |
boolean | isFileHeaderCorrect (String header) |
boolean | readNext (FileChannel input) throws IOException |
void | readHeader (String file, FileInputStream fis, ByteBuffer buffer) throws IOException |
Protected Attributes | |
long | format |
long | num_threads |
long | num_cctid |
long | num_metric |
String | filename |
Package Attributes | |
long | offset_start |
long | offset_size |
long | metric_start |
long | metric_size |
int | size_offset |
int | size_metid |
int | size_metval |
int[] | cct_table = null |
Private Member Functions | |
void | fillOffsetTable (final String filename) throws IOException |
void | open_internal (String filename) throws FileNotFoundException |
Private Attributes | |
RandomAccessFile | file |
FileChannel | channel |
Static Private Attributes | |
static final int | FLOAT_SIZE = Float.SIZE / Byte.SIZE |
static final int | INTEGER_SIZE = Integer.SIZE / Byte.SIZE |
static final int | METRIC_ENTRY_SIZE = FLOAT_SIZE + INTEGER_SIZE |
Definition at line 21 of file DataSummary.java.
void edu.rice.cs.hpc.viewer.db.DataSummary.dispose | ( | ) | throws IOException |
Reimplemented from edu.rice.cs.hpc.data.db.DataCommon.
Definition at line 229 of file DataSummary.java.
References edu.rice.cs.hpc.viewer.db.DataSummary.channel, and edu.rice.cs.hpc.viewer.db.DataSummary.file.
void edu.rice.cs.hpc.viewer.db.DataSummary.fillOffsetTable | ( | final String | filename | ) | throws IOException [private] |
Definition at line 170 of file DataSummary.java.
References edu.rice.cs.hpc.viewer.db.DataSummary.cct_table, edu.rice.cs.hpc.viewer.db.DataSummary.channel, edu.rice.cs.hpc.data.db.DataCommon.num_cctid, edu.rice.cs.hpc.viewer.db.DataSummary.offset_size, and edu.rice.cs.hpc.viewer.db.DataSummary.offset_start.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.open().
float edu.rice.cs.hpc.viewer.db.DataSummary.getMetric | ( | int | cct_id, | |
int | metric_id | |||
) | throws IOException |
Definition at line 133 of file DataSummary.java.
References edu.rice.cs.hpc.viewer.db.DataSummary.cct_table, edu.rice.cs.hpc.viewer.db.DataSummary.DEFAULT_METRIC, edu.rice.cs.hpc.viewer.db.DataSummary.file, edu.rice.cs.hpc.viewer.db.DataSummary.METRIC_ENTRY_SIZE, edu.rice.cs.hpc.viewer.db.DataSummary.metric_start, and edu.rice.cs.hpc.viewer.db.DataSummary.offset_size.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.printInfo().
boolean edu.rice.cs.hpc.viewer.db.DataSummary.isFileHeaderCorrect | ( | String | header | ) | [protected, virtual] |
Implements edu.rice.cs.hpc.data.db.DataCommon.
Definition at line 198 of file DataSummary.java.
boolean edu.rice.cs.hpc.viewer.db.DataSummary.isTypeFormatCorrect | ( | long | type | ) | [protected, virtual] |
Implements edu.rice.cs.hpc.data.db.DataCommon.
Definition at line 193 of file DataSummary.java.
static void edu.rice.cs.hpc.viewer.db.DataSummary.main | ( | String[] | argv | ) | [static] |
Definition at line 249 of file DataSummary.java.
References edu.rice.cs.hpc.data.db.DataCommon.filename, edu.rice.cs.hpc.viewer.db.DataSummary.open(), and edu.rice.cs.hpc.viewer.db.DataSummary.printInfo().
void edu.rice.cs.hpc.viewer.db.DataSummary.open | ( | final String | file | ) | throws IOException |
Reimplemented from edu.rice.cs.hpc.data.db.DataCommon.
Definition at line 62 of file DataSummary.java.
References edu.rice.cs.hpc.viewer.db.DataSummary.file, edu.rice.cs.hpc.viewer.db.DataSummary.fillOffsetTable(), and edu.rice.cs.hpc.viewer.db.DataSummary.open_internal().
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.main().
void edu.rice.cs.hpc.viewer.db.DataSummary.open_internal | ( | String | filename | ) | throws FileNotFoundException [private] |
Definition at line 238 of file DataSummary.java.
References edu.rice.cs.hpc.viewer.db.DataSummary.channel, edu.rice.cs.hpc.viewer.db.DataSummary.file, and edu.rice.cs.hpc.data.db.DataCommon.filename.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.open().
void edu.rice.cs.hpc.viewer.db.DataSummary.printInfo | ( | PrintStream | out | ) |
Reimplemented from edu.rice.cs.hpc.data.db.DataCommon.
Definition at line 78 of file DataSummary.java.
References edu.rice.cs.hpc.viewer.db.DataSummary.cct_table, edu.rice.cs.hpc.viewer.db.DataSummary.getMetric(), edu.rice.cs.hpc.viewer.db.DataSummary.metric_size, edu.rice.cs.hpc.viewer.db.DataSummary.metric_start, edu.rice.cs.hpc.data.db.DataCommon.num_cctid, edu.rice.cs.hpc.data.db.DataCommon.num_metric, edu.rice.cs.hpc.viewer.db.DataSummary.offset_size, edu.rice.cs.hpc.viewer.db.DataSummary.offset_start, edu.rice.cs.hpc.viewer.db.DataSummary.size_metid, edu.rice.cs.hpc.viewer.db.DataSummary.size_metval, and edu.rice.cs.hpc.viewer.db.DataSummary.size_offset.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.main().
void edu.rice.cs.hpc.data.db.DataCommon.readHeader | ( | String | file, | |
FileInputStream | fis, | |||
ByteBuffer | buffer | |||
) | throws IOException [protected, inherited] |
Definition at line 92 of file DataCommon.java.
References edu.rice.cs.hpc.data.db.DataCommon.format, edu.rice.cs.hpc.data.db.DataCommon.isTypeFormatCorrect(), edu.rice.cs.hpc.data.db.DataCommon.MAGIC, edu.rice.cs.hpc.data.db.DataCommon.MESSAGE_SIZE, edu.rice.cs.hpc.data.db.DataCommon.num_cctid, edu.rice.cs.hpc.data.db.DataCommon.num_metric, edu.rice.cs.hpc.data.db.DataCommon.num_threads, and edu.rice.cs.hpc.data.db.DataCommon.throw_exception().
Referenced by edu.rice.cs.hpc.data.db.DataCommon.open().
boolean edu.rice.cs.hpc.viewer.db.DataSummary.readNext | ( | FileChannel | input | ) | throws IOException [protected, virtual] |
Implements edu.rice.cs.hpc.data.db.DataCommon.
Definition at line 204 of file DataSummary.java.
References edu.rice.cs.hpc.viewer.db.DataSummary.metric_size, edu.rice.cs.hpc.viewer.db.DataSummary.metric_start, edu.rice.cs.hpc.viewer.db.DataSummary.offset_size, edu.rice.cs.hpc.viewer.db.DataSummary.offset_start, edu.rice.cs.hpc.viewer.db.DataSummary.size_metid, edu.rice.cs.hpc.viewer.db.DataSummary.size_metval, and edu.rice.cs.hpc.viewer.db.DataSummary.size_offset.
int [] edu.rice.cs.hpc.viewer.db.DataSummary.cct_table = null [package] |
Definition at line 46 of file DataSummary.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.fillOffsetTable(), edu.rice.cs.hpc.viewer.db.DataSummary.getMetric(), and edu.rice.cs.hpc.viewer.db.DataSummary.printInfo().
FileChannel edu.rice.cs.hpc.viewer.db.DataSummary.channel [private] |
Definition at line 49 of file DataSummary.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.dispose(), edu.rice.cs.hpc.viewer.db.DataSummary.fillOffsetTable(), and edu.rice.cs.hpc.viewer.db.DataSummary.open_internal().
final float edu.rice.cs.hpc.viewer.db.DataSummary.DEFAULT_METRIC = 0.0f [static] |
Definition at line 31 of file DataSummary.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.getMetric().
RandomAccessFile edu.rice.cs.hpc.viewer.db.DataSummary.file [private] |
Definition at line 48 of file DataSummary.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.dispose(), edu.rice.cs.hpc.viewer.db.DataSummary.getMetric(), edu.rice.cs.hpc.viewer.db.DataSummary.open(), and edu.rice.cs.hpc.viewer.db.DataSummary.open_internal().
String edu.rice.cs.hpc.data.db.DataCommon.filename [protected, inherited] |
Definition at line 26 of file DataCommon.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.main(), edu.rice.cs.hpc.data.db.DataCommon.open(), and edu.rice.cs.hpc.viewer.db.DataSummary.open_internal().
final int edu.rice.cs.hpc.viewer.db.DataSummary.FLOAT_SIZE = Float.SIZE / Byte.SIZE [static, private] |
Definition at line 28 of file DataSummary.java.
long edu.rice.cs.hpc.data.db.DataCommon.format [protected, inherited] |
Definition at line 21 of file DataCommon.java.
Referenced by edu.rice.cs.hpc.data.db.DataCommon.printInfo(), and edu.rice.cs.hpc.data.db.DataCommon.readHeader().
final int edu.rice.cs.hpc.viewer.db.DataSummary.INTEGER_SIZE = Integer.SIZE / Byte.SIZE [static, private] |
Definition at line 29 of file DataSummary.java.
final int edu.rice.cs.hpc.viewer.db.DataSummary.METRIC_ENTRY_SIZE = FLOAT_SIZE + INTEGER_SIZE [static, private] |
Definition at line 30 of file DataSummary.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.getMetric().
long edu.rice.cs.hpc.viewer.db.DataSummary.metric_size [package] |
Definition at line 40 of file DataSummary.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.printInfo(), and edu.rice.cs.hpc.viewer.db.DataSummary.readNext().
long edu.rice.cs.hpc.viewer.db.DataSummary.metric_start [package] |
Definition at line 39 of file DataSummary.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.getMetric(), edu.rice.cs.hpc.viewer.db.DataSummary.printInfo(), and edu.rice.cs.hpc.viewer.db.DataSummary.readNext().
long edu.rice.cs.hpc.data.db.DataCommon.num_cctid [protected, inherited] |
Definition at line 23 of file DataCommon.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.fillOffsetTable(), edu.rice.cs.hpc.viewer.db.DataSummary.printInfo(), edu.rice.cs.hpc.data.db.DataCommon.printInfo(), and edu.rice.cs.hpc.data.db.DataCommon.readHeader().
long edu.rice.cs.hpc.data.db.DataCommon.num_metric [protected, inherited] |
Definition at line 24 of file DataCommon.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.printInfo(), edu.rice.cs.hpc.data.db.DataCommon.printInfo(), and edu.rice.cs.hpc.data.db.DataCommon.readHeader().
long edu.rice.cs.hpc.data.db.DataCommon.num_threads [protected, inherited] |
Definition at line 22 of file DataCommon.java.
Referenced by edu.rice.cs.hpc.data.db.DataCommon.printInfo(), and edu.rice.cs.hpc.data.db.DataCommon.readHeader().
long edu.rice.cs.hpc.viewer.db.DataSummary.offset_size [package] |
Definition at line 38 of file DataSummary.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.fillOffsetTable(), edu.rice.cs.hpc.viewer.db.DataSummary.getMetric(), edu.rice.cs.hpc.viewer.db.DataSummary.printInfo(), and edu.rice.cs.hpc.viewer.db.DataSummary.readNext().
long edu.rice.cs.hpc.viewer.db.DataSummary.offset_start [package] |
Definition at line 37 of file DataSummary.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.fillOffsetTable(), edu.rice.cs.hpc.viewer.db.DataSummary.printInfo(), and edu.rice.cs.hpc.viewer.db.DataSummary.readNext().
int edu.rice.cs.hpc.viewer.db.DataSummary.size_metid [package] |
Definition at line 43 of file DataSummary.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.printInfo(), and edu.rice.cs.hpc.viewer.db.DataSummary.readNext().
int edu.rice.cs.hpc.viewer.db.DataSummary.size_metval [package] |
Definition at line 44 of file DataSummary.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.printInfo(), and edu.rice.cs.hpc.viewer.db.DataSummary.readNext().
int edu.rice.cs.hpc.viewer.db.DataSummary.size_offset [package] |
Definition at line 42 of file DataSummary.java.
Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.printInfo(), and edu.rice.cs.hpc.viewer.db.DataSummary.readNext().