Header.java

Go to the documentation of this file.
00001 package edu.rice.cs.hpc.traceviewer.data.db;
00002 
00003 import edu.rice.cs.hpc.data.util.Constants;
00004 
00005 class Header 
00006 {
00007     public final static String Magic   = "HPCRUN-trace______";
00008     public final static int MagicLen   = 18;
00009     public final static int VersionLen = 5;
00010     public final static String Endian  = "b";
00011     public final static int EndianLen  = 1;
00012     public final static int FlagsLen   = 8;
00013 
00014     public double version;
00015     public long flags;
00016     public boolean isDataCentric;
00017     
00018     public int RecordSz; // in bytes
00019                 
00020     public Header(double _version, long _flags) {
00021         version = _version;
00022         flags = _flags;
00023         isDataCentric = (flags == 1);
00024 
00025         RecordSz = Constants.SIZEOF_LONG   // time stamp
00026                     + Constants.SIZEOF_INT; // call path id
00027         if (isDataCentric) {
00028             RecordSz += Constants.SIZEOF_INT; // metric id
00029         }
00030     }
00031 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1