Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
system.hpp File Reference
#include <algorithm>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <optional>
#include <string>
#include <string_view>

Go to the source code of this file.

Classes

struct  pulp::runtime::SystemInfo

Namespaces

namespace  pulp
namespace  pulp::runtime

Functions

std::optional< std::string > pulp::runtime::get_env (std::string_view name)
std::tm pulp::runtime::gmtime_utc (std::time_t value)
std::tm pulp::runtime::localtime_local (std::time_t value)
void pulp::runtime::copy_c_string (char *dest, std::size_t dest_size, std::string_view src)
template<std::size_t N>
void pulp::runtime::copy_c_string (char(&dest)[N], std::string_view src)
const SystemInfo & pulp::runtime::get_system_info ()
 Query system information (cached after first call).
int pulp::runtime::cpu_thread_count ()
 Number of logical CPU threads (convenience).
uint64_t pulp::runtime::total_memory_mb ()
 Total physical memory in MB (convenience).