9 #ifndef STK_UTIL_DIAG_Platform_h 10 #define STK_UTIL_DIAG_Platform_h 13 #include <stk_util/stk_config.h> 14 #if defined( STK_HAS_MPI ) 18 #include <stk_util/util/FeatureTest.hpp> 19 #include <stk_util/diag/Env.hpp> 21 #include <stk_util/diag/Option.hpp> 22 #include <stk_util/environment/RegisterProduct.hpp> 210 bool path_access(
const std::string &path,
int mode);
300 #endif // STK_UTIL_DIAG_Platform_h size_t get_available_memory()
Function get_available_memory returns an estimation of the amount of memory available to the process...
std::string osversion()
Function osversion returns the hardware type of the host running the application. ...
int pid()
Function pid returns the process id of the process running the application.
void get_memory_info(size_t &memory_usage, size_t &faults)
Function get_memory_info returns the total memory usage of the process and the number of page faults ...
bool path_write_access(const std::string &name)
Function path_write_access returns true if the process has write access to the path.
void startup_preparallel_platform()
Function startup_preparallel_platform ...
bool release_lock(int fd)
Function release_lock returns true if the process was able to release a lock previously palced on the...
void get_heap_info(size_t &heap_size, size_t &largest_free)
Member function get_heap_info returns the amount of heap memory used in bytes and the largest free bl...
bool write_lock(int fd)
Function write_lock returns true if the process was able to place an exclusive lock on the specified ...
size_t get_heap_usage()
Function get_heap_usage returns the number of bytes used by the heap.
bool append_lock(int fd)
Function append_lock returns true if the process was able to place an exclusive lock on the end of th...
bool path_access(const std::string &name, int mode)
Function path_access returns true if the process has permission to access path with the specified mod...
std::string hardware()
Function hardware returns the hardware type of the host running the application.
std::string domainname()
Function domainname returns the domainname of the domain running the application. ...
bool read_lock(int fd)
Function read_lock returns true if the process was able to place a shared lock on the specified file ...
bool path_exists(const std::string &name)
Function path_exists returns true if the path exists.
std::string username()
Function username returns the username of the user running the application.
bool path_read_access(const std::string &name)
Function path_read_access returns true if the process has read access to the path.
int pgrp()
Function pgrp returns the process group id of the process running the application.
std::string osname()
Function osname returns the operating system nameof the host running the application.
std::string hostname()
Function hostname returns the hostname of the host running the application.