Bitcoin Core 32.99.0
P2P Digital Currency
Loading...
Searching...
No Matches
Functions
system.h File Reference
#include <bitcoin-build-config.h>
#include <util/time.h>
#include <cstdint>
#include <optional>
#include <string>
Include dependency graph for system.h:

Go to the source code of this file.

Functions

SteadyClock::duration GetUptime ()
 Monotonic uptime (not affected by system time changes).
 
void SetupEnvironment ()
 
bool SetupNetworking ()
 
std::string ShellEscape (const std::string &arg)
 
int GetNumCores ()
 Return the number of cores available on the current system.
 
std::optional< uint64_t > TryGetTotalRam ()
 Return the total RAM available on the current system, if detectable.
 

Function Documentation

◆ GetNumCores()

int GetNumCores ( )

Return the number of cores available on the current system.

Note
This does count virtual cores, such as those provided by HyperThreading.

Definition at line 94 of file system.cpp.

Here is the caller graph for this function:

◆ GetUptime()

SteadyClock::duration GetUptime ( )

Monotonic uptime (not affected by system time changes).

Definition at line 116 of file system.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetupEnvironment()

void SetupEnvironment ( )

Definition at line 56 of file system.cpp.

◆ SetupNetworking()

bool SetupNetworking ( )

Definition at line 82 of file system.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ShellEscape()

std::string ShellEscape ( const std::string &  arg)

Definition at line 37 of file system.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TryGetTotalRam()

std::optional< uint64_t > TryGetTotalRam ( )

Return the total RAM available on the current system, if detectable.

Definition at line 99 of file system.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: