Chi-Tech
chi_console_structs.h
Go to the documentation of this file.
1
#ifndef CHI_CONSOLE_STRUCTS_H
2
#define CHI_CONSOLE_STRUCTS_H
3
4
//=============================================================================
5
namespace
chi
6
{
7
/**Simple structure for memory usage.*/
8
struct
CSTMemory
9
{
10
double
memory_bytes
= 0.0;
11
double
memory_kbytes
= 0.0;
12
double
memory_mbytes
= 0.0;
13
double
memory_gbytes
= 0.0;
14
15
CSTMemory
() =
default
;
16
17
explicit
CSTMemory
(
double
in_mem)
18
{
19
memory_bytes
= in_mem;
20
memory_kbytes
= in_mem/1024.0;
21
memory_mbytes
= in_mem/1024.0/1024.0;
22
memory_gbytes
= in_mem/1024.0/1024.0;
23
}
24
25
CSTMemory
&
operator=
(
const
CSTMemory
& in_struct) =
default
;
26
};
27
}
28
29
#endif
chi
Definition:
chi_runtime.h:53
chi::CSTMemory
Definition:
chi_console_structs.h:9
chi::CSTMemory::memory_kbytes
double memory_kbytes
Definition:
chi_console_structs.h:11
chi::CSTMemory::memory_bytes
double memory_bytes
Definition:
chi_console_structs.h:10
chi::CSTMemory::operator=
CSTMemory & operator=(const CSTMemory &in_struct)=default
chi::CSTMemory::CSTMemory
CSTMemory()=default
chi::CSTMemory::memory_gbytes
double memory_gbytes
Definition:
chi_console_structs.h:13
chi::CSTMemory::CSTMemory
CSTMemory(double in_mem)
Definition:
chi_console_structs.h:17
chi::CSTMemory::memory_mbytes
double memory_mbytes
Definition:
chi_console_structs.h:12
framework
console
chi_console_structs.h
Generated by
1.9.3