#include <unistd.h>
#include <sys/times.h>
#include <time.h>
#include <fstream>
#include <iterator>
#include <sstream>
#include "Epetra_Comm.h"
#include "Epetra_Map.h"
#include "Epetra_CrsMatrix.h"
#include "rlog/RLogChannel.h"
#include "myrlog.h"
Include dependency graph for myrlog.cpp:
Go to the source code of this file.
Namespaces | |
namespace | rlog |
Functions | |
std::string | rlog::bytes2str (unsigned long long size) |
string | get_log_file_name (string prefix) |
size_t | get_mem_footprint () |
void | log_mem_footprint (const Epetra_Comm &comm, string msg) |
void | log_command_line_args (int argc, char *argv[], rlog::RLogChannel *channel) |
size_t | get_matrix_mem_footprint (const Epetra_CrsMatrix &A) |
void | log_matrix_stats (string matrix_name, const Epetra_CrsMatrix *A) |
string get_log_file_name | ( | string | prefix | ) |
Return file name suitable for the log file.
Note that the file names generated by this function must be unique on a given system.
Definition at line 151 of file myrlog.cpp.
Referenced by main().
size_t get_matrix_mem_footprint | ( | const Epetra_CrsMatrix & | ) |
Return local memory footprint of a Epetra_CrsMatrix.
Definition at line 267 of file myrlog.cpp.
Referenced by log_matrix_stats().
size_t get_mem_footprint | ( | ) |
Return the current memory footprint of the process (code, data, stack, lib).
Definition at line 215 of file myrlog.cpp.
Referenced by log_mem_footprint().
void log_command_line_args | ( | int | argc, | |
char * | argv[], | |||
rlog::RLogChannel * | channel = 0 | |||
) |
void log_matrix_stats | ( | string | matrix_name, | |
const Epetra_CrsMatrix * | A | |||
) |
Definition at line 329 of file myrlog.cpp.
References rlog::bytes2str(), and get_matrix_mem_footprint().
Referenced by AbstractEigsolvOperators::build_Asigma(), QuadraticEigsolvOperators::matrixAssembly(), and LinearEigsolvOperators::matrixAssembly().
Here is the call graph for this function:
void log_mem_footprint | ( | const Epetra_Comm & | comm, | |
string | msg | |||
) |
Definition at line 239 of file myrlog.cpp.
References rlog::bytes2str(), and get_mem_footprint().
Here is the call graph for this function: