38 void start(std::chrono::milliseconds interval = std::chrono::milliseconds{1000});
47 std::vector<memory_snapshot>
get_history(std::size_t max_count = 256)
const;
53 std::string
to_tsv()
const;
static bool query_process_memory(std::uint64_t &rss, std::uint64_t &vms)
memory_profiler()=default
std::string to_tsv() const
std::vector< memory_snapshot > get_history(std::size_t max_count=256) const
std::chrono::milliseconds sampling_interval_
std::vector< memory_snapshot > history_
memory_snapshot snapshot()
memory_profiler(const memory_profiler &)=delete
void schedule_next_sample()
memory_profiler & operator=(const memory_profiler &)=delete
static memory_profiler & instance()
std::atomic< bool > running_
void start(std::chrono::milliseconds interval=std::chrono::milliseconds{1000})
Utility components for network_system.
std::chrono::system_clock::time_point timestamp
std::uint64_t virtual_bytes
std::uint64_t resident_bytes