1#ifndef MEMORYINFOFETCHER_H
2#define MEMORYINFOFETCHER_H
89 void setup_platform_relative();
92 int flush_msecs { 1500 };
The CCIMX_AbstractMemoryInfoDriver class Abstract base class for platform-specific memory information...
Definition MemoryInfoFetcher.h:100
virtual void factory(MemoryInfoFetcher::MemoryStat &stat)=0
factory Populate the MemoryStat structure with current memory info.
The MemoryInfoFetcher class Provides memory usage information in a platform-independent manner....
Definition MemoryInfoFetcher.h:15
Q_DISABLE_COPY(MemoryInfoFetcher)
disable copy
static QString format_size(quint64 size)
format_size Utility function to format byte size into human-readable string.
Definition MemoryInfoFetcher.cpp:8
~MemoryInfoFetcher()
Destructor to clean up resources.
Definition MemoryInfoFetcher.cpp:27
void finish_detect_memory(const MemoryInfoFetcher::MemoryStat &mem_stat)
finish_detect_memory Signal emitted when memory information is updated.
struct MemoryInfoFetcher::MemoryStat mem_stat
memory stat holder
void set_capture_state(bool st)
set_capture_state Enables or disables memory information capturing.
Definition MemoryInfoFetcher.cpp:34
void set_flush_freq(const int msecs)
set_flush_freq Sets the frequency in milliseconds at which memory info is refreshed.
Definition MemoryInfoFetcher.h:58
The MemoryStat struct Holds memory statistics at the byte level.
Definition MemoryInfoFetcher.h:46
quint64 avail_virt_memory
Available virtual memory in bytes.
Definition MemoryInfoFetcher.h:50
quint64 total_virt_memory
Total virtual memory in bytes.
Definition MemoryInfoFetcher.h:49
quint64 total_phys_memory
Total physical memory in bytes.
Definition MemoryInfoFetcher.h:47
quint64 avail_phys_memory
Available physical memory in bytes.
Definition MemoryInfoFetcher.h:48