JANA2
 All Classes Functions Variables Enumerations Friends
JStatus Class Reference
Collaboration diagram for JStatus:

Classes

struct  BACKTRACE_INFO_t
 
struct  char_str
 

Public Member Functions

void GenerateReport (std::stringstream &ss)
 
void SendReport (std::stringstream &ss)
 
std::string BackTraceToString (BACKTRACE_INFO_t &btinfo)
 

Static Public Member Functions

static void Report (void)
 
static void RecordBackTrace (void)
 

Protected Member Functions

 JStatus ()
 

Protected Attributes

std::string path
 

Constructor & Destructor Documentation

JStatus::JStatus ( )
protected

Construct a JStatus object. JStatus is a singleton and can only be constructed via a call to the static "JStatus::Report()" method.

References JParameterManager::SetDefaultParameter().

Here is the call graph for this function:

Member Function Documentation

string JStatus::BackTraceToString ( BACKTRACE_INFO_t btinfo)

Convert the given trace to a multi-line string.

void JStatus::RecordBackTrace ( void  )
static

Record the backtrace for the current thread in the BACKTRACES global.

void JStatus::Report ( void  )
static

Static method used to generate and write the current status of the JANA process to the named pipe. On the first call, this will create a JStatus object and create the named pipe (see JANA::STATUS_FNAME for name). Subsequent calls will open the pipe, write to it, and close it. This is generally called when the process receives a USR1 signal. Typically, if a single JANA process is running on the node, then one can issue a "killall <progname> -USR1" and then do a "cat /tmp/jana_status" to see the report.


The documentation for this class was generated from the following files: