HPCToolkit
Constants.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 TraceviewerServer
 

Macros

#define SIZEOF_LONG   8
 
#define SIZEOF_INT   4
 
#define SIZEOF_SHORT   2
 
#define SIZEOF_BYTE   1
 
#define SIZEOF_DELTASAMPLE   (2*SIZEOF_INT)
 
#define SIZE_OF_TRACE_RECORD   (SIZEOF_INT+SIZEOF_LONG)
 
#define SIZEOF_END_OF_FILE_MARKER   4
 

Enumerations

enum  TraceviewerServer::DatabaseType { TraceviewerServer::MULTI_PROCESSES = 1, TraceviewerServer::MULTI_THREADING = 2 }
 
enum  TraceviewerServer::Header {
  TraceviewerServer::DATA = 0x44415441, TraceviewerServer::OPEN = 0x4F50454E, TraceviewerServer::HERE = 0x48455245, TraceviewerServer::DONE = 0x444F4E45,
  TraceviewerServer::DBOK = 0x44424F4B, TraceviewerServer::INFO = 0x494E464F, TraceviewerServer::NODB = 0x4E4F4442, TraceviewerServer::EXML = 0x45584D4C,
  TraceviewerServer::FLTR = 0x464C5452, TraceviewerServer::SLAVE_REPLY = 0x534C5250, TraceviewerServer::SLAVE_DONE = 0x534C444E
}
 
enum  TraceviewerServer::ServerNextAction { TraceviewerServer::CLOSE_SERVER = 0, TraceviewerServer::START_NEW_CONNECTION_IMMEDIATELY =1 }
 
enum  TraceviewerServer::ErrorCode {
  TraceviewerServer::ERROR_STREAM_OPEN_FAILED = -3, TraceviewerServer::ERROR_EXPECTED_OPEN_COMMAND = -77, TraceviewerServer::ERROR_DB_OPEN_FAILED = -4, TraceviewerServer::ERROR_UNKNOWN_COMMAND = -7,
  TraceviewerServer::ERROR_PATH_TOO_LONG = -9, TraceviewerServer::ERROR_INVALID_PARAMETERS = -99, TraceviewerServer::ERROR_COMPRESSION_FAILED = -33445, TraceviewerServer::ERROR_GET_RAM_SIZE_FAILED = -4456,
  TraceviewerServer::ERROR_READ_TOO_LITTLE = -5200, TraceviewerServer::ERROR_STREAM_CLOSED = -12, TraceviewerServer::ERROR_SOCKET_IN_USE = -1111
}
 

Variables

static const int TraceviewerServer::DEFAULT_PORT = 21590
 
static const unsigned int TraceviewerServer::MAX_DB_PATH_LENGTH = 1023
 

Macro Definition Documentation

◆ SIZE_OF_TRACE_RECORD

#define SIZE_OF_TRACE_RECORD   (SIZEOF_INT+SIZEOF_LONG)

The size of one trace record in bytes (cpid (= 4 bytes) + timeStamp (= 8 bytes)).

Definition at line 74 of file Constants.hpp.

◆ SIZEOF_BYTE

#define SIZEOF_BYTE   1

Definition at line 69 of file Constants.hpp.

◆ SIZEOF_DELTASAMPLE

#define SIZEOF_DELTASAMPLE   (2*SIZEOF_INT)

Definition at line 71 of file Constants.hpp.

◆ SIZEOF_END_OF_FILE_MARKER

#define SIZEOF_END_OF_FILE_MARKER   4

Definition at line 75 of file Constants.hpp.

◆ SIZEOF_INT

#define SIZEOF_INT   4

Definition at line 67 of file Constants.hpp.

◆ SIZEOF_LONG

#define SIZEOF_LONG   8

Definition at line 66 of file Constants.hpp.

◆ SIZEOF_SHORT

#define SIZEOF_SHORT   2

Definition at line 68 of file Constants.hpp.