Derecho  0.9
Distributed systems toolkit for RDMA
Functions | Variables
util.cpp File Reference
#include <derecho/rdmc/detail/util.hpp>
#include <cassert>
#include <cinttypes>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <iostream>
#include <numeric>
#include <sstream>
#include <sys/stat.h>
#include <thread>
Include dependency graph for util.cpp:

Go to the source code of this file.

Functions

template<class T , class U >
lexical_cast (U u)
 
bool file_exists (const string &name)
 
void create_directory (const string &name)
 
double compute_data_rate (size_t num_bytes, uint64_t sTime, uint64_t eTime)
 
void put_flush (const char *str)
 
bool slurm_query_addresses (map< uint32_t, string > &addresses, uint32_t &node_rank)
 
void query_peer_addresses (map< uint32_t, string > &addresses, uint32_t &node_rank)
 
void reset_epoch ()
 
double compute_mean (std::vector< double > v)
 
double compute_stddev (std::vector< double > v)
 
void start_flush_server ()
 
void flush_events ()
 

Variables

vector< eventevents
 
std::mutex events_mutex
 

Function Documentation

◆ compute_data_rate()

double compute_data_rate ( size_t  num_bytes,
uint64_t  sTime,
uint64_t  eTime 
)

Definition at line 44 of file util.cpp.

◆ compute_mean()

double compute_mean ( std::vector< double >  v)

Definition at line 108 of file util.cpp.

◆ compute_stddev()

double compute_stddev ( std::vector< double >  v)

Definition at line 112 of file util.cpp.

◆ create_directory()

void create_directory ( const string &  name)

Definition at line 39 of file util.cpp.

◆ file_exists()

bool file_exists ( const string &  name)

Definition at line 34 of file util.cpp.

◆ flush_events()

void flush_events ( )

Definition at line 130 of file util.cpp.

◆ lexical_cast()

template<class T , class U >
T lexical_cast ( u)

Definition at line 26 of file util.cpp.

◆ put_flush()

void put_flush ( const char *  str)

Definition at line 47 of file util.cpp.

◆ query_peer_addresses()

void query_peer_addresses ( map< uint32_t, string > &  addresses,
uint32_t &  node_rank 
)

Definition at line 85 of file util.cpp.

◆ reset_epoch()

void reset_epoch ( )

Definition at line 102 of file util.cpp.

◆ slurm_query_addresses()

bool slurm_query_addresses ( map< uint32_t, string > &  addresses,
uint32_t &  node_rank 
)

Definition at line 55 of file util.cpp.

◆ start_flush_server()

void start_flush_server ( )

Definition at line 120 of file util.cpp.

Variable Documentation

◆ events

vector<event> events

Definition at line 118 of file util.cpp.

◆ events_mutex

std::mutex events_mutex

Definition at line 119 of file util.cpp.