📄 const.java
字号:
/* * (C) 2001 by Argonne National Laboratory * See COPYRIGHT in top-level directory. *//* * @author Anthony Chan */package logformat.clog2;public class Const{ // Current Version ID static final String VERSION = "CLOG-02.44"; /* Older Version IDs, COMPAT_VERSIONS, that are compataible to VERSION. Version 02.20 is compatible with 02.10. If No compatibel version, define COMPAT_VERSIONS as follows static final String[] COMPAT_VERSIONS = {}; If VERSION is compatible with CLOG-02.10, define COMPAT_VERSIONS as static final String[] COMPAT_VERSIONS = { "CLOG-02.10" }; VERSION 2.30: Updates CLOG2 format to supports MPI_Comm. VERSION 2.40: Updates clog2TOdrawable to support user-defined events, and updates CLOG2's preamble to contain various eventID and stateID info. VERSION 2.41: Updates CLOG2's preamble with (MPE internal solo events) known_solo_events' info and updates clog2TOdrawable to understand/prefdefine known_solo_events. VERSION 2.42: Added a Communicator Table at the end of CLOG2. Updated CLOG_Preamble with a pointer that points to the communicator table. VERSION 2.43: Added a boolean value in CLOG_Preamble to indicate if the file is a finalized file so 1) clog2TOslog2 can refuse to process a local file, 2) clog2_join can "patch" the timestamps by using the timeshift events, 3) a repair program can fixup the broken/unfinish local clog2 file (for debugging). VERSION 2.44: Added a max_thread_count in CLOG_Preamble for thread-safe support. The variable shows the maximum local threads (per process) among processes recorded in the logfile and is used to generate unique LineID in the YaxisViewMap in clog2TOslog2 */ static final String[] COMPAT_VERSIONS = {}; static final byte INVALID_byte = Byte.MIN_VALUE; static final short INVALID_short = Short.MIN_VALUE; static final int INVALID_int = Integer.MIN_VALUE; static final long INVALID_long = Long.MIN_VALUE; static final int NULL_int = 0; static final int NULL_iaddr = 0; static final long NULL_fptr = 0; static final float INVALID_float = Float.MIN_VALUE; static final double INVALID_double = Double.MIN_VALUE; static final int TRUE = 1; static final int FALSE = 0; public class AllType { public static final int UNDEF = -1; // CLOG_REC_UNDEF } public class RecType { // public static final int UNDEF = -1; // CLOG_REC_UNDEF public static final int ENDLOG = 0; // CLOG_REC_ENDLOG public static final int ENDBLOCK = 1; // CLOG_REC_ENDBLOCK static final int STATEDEF = 2; // CLOG_REC_STATEDEF static final int EVENTDEF = 3; // CLOG_REC_EVENTDEF static final int CONSTDEF = 4; // CLOG_REC_CONSTDEF static final int BAREEVT = 5; // CLOG_REC_BAREEVT static final int CARGOEVT = 6; // CLOG_REC_CARGOEVT static final int MSGEVT = 7; // CLOG_REC_MSGEVT static final int COLLEVT = 8; // CLOG_REC_COLLEVT static final int COMMEVT = 9; // CLOG_REC_COMMEVT static final int SRCLOC = 10; // CLOG_REC_SRCLOC static final int SHIFT = 11; // CLOG_REC_TIMESHIFT } class MsgType // define send and recv events { static final int SEND = -101; // CLOG_EVT_SENDMSG static final int RECV = -102; // CLOG_EVT_RECVMSG } class CommType // define CLOG communicator event types { static final int WORLD_CREATE = 0; // CLOG_COMM_WORLD_CREATE static final int SELF_CREATE = 1; // CLOG_COMM_SELF_CREATE static final int FREE = 10; // CLOG_COMM_FREE static final int INTRA_CREATE = 100; // CLOG_COMM_INTRA_CREATE static final int INTRA_LOCAL = 101; // CLOG_COMM_INTRA_LOCAL static final int INTRA_REMOTE = 102; // CLOG_COMM_INTRA_REMOTE static final int INTER_CREATE = 1000; // CLOG_COMM_INTER_CREATE }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -