Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
MemoryUsage.h
Go to the documentation of this file.
1/*
2* This file is part of Project SkyFire https://www.projectskyfire.org.
3* See LICENSE.md file for Copyright information
4*/
5
6#ifndef SKYFIRE_MEMORY_USAGE_H
7#define SKYFIRE_MEMORY_USAGE_H
8
9#include "Define.h"
10
11#include <string>
12
13namespace Skyfire
14{
27
42
45
46 std::string FormatMemorySize(uint64 bytes);
49 std::string FormatMemoryUsageSummary(ProcessMemoryUsage const& processUsage, SystemMemoryUsage const& systemUsage);
50}
51
52#endif
std::uint64_t uint64
Definition Define.h:76
std::string FormatProcessMemoryUsage(ProcessMemoryUsage const &usage)
bool GetProcessMemoryUsage(ProcessMemoryUsage &usage)
std::string FormatMemorySize(uint64 bytes)
std::string FormatSystemMemoryUsage(SystemMemoryUsage const &usage)
bool GetSystemMemoryUsage(SystemMemoryUsage &usage)
std::string FormatMemoryUsageSummary(ProcessMemoryUsage const &processUsage, SystemMemoryUsage const &systemUsage)
void usage(const char *prog)
Print out the usage string for this program on the console.
Definition Main.cpp:192