The MemoryInfoFetcher class Provides memory usage information in a platform-independent manner. Acts as a memory information fetcher interface.
More...
#include <MemoryInfoFetcher.h>
|
| MemoryInfoFetcher (QObject *parent=nullptr) |
| Constructor with optional parent.
|
|
| ~MemoryInfoFetcher () |
| Destructor to clean up resources.
|
|
| Q_DISABLE_COPY (MemoryInfoFetcher) |
| disable copy
|
|
void | set_flush_freq (const int msecs) |
| set_flush_freq Sets the frequency in milliseconds at which memory info is refreshed.
|
|
void | set_capture_state (bool st) |
| set_capture_state Enables or disables memory information capturing.
|
|
|
static QString | format_size (quint64 size) |
| format_size Utility function to format byte size into human-readable string.
|
|
The MemoryInfoFetcher class Provides memory usage information in a platform-independent manner. Acts as a memory information fetcher interface.
◆ MemoryInfoFetcher()
MemoryInfoFetcher::MemoryInfoFetcher |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
Constructor with optional parent.
- Parameters
-
parent | Pointer to the QObject parent, default is nullptr. |
◆ finish_detect_memory
finish_detect_memory Signal emitted when memory information is updated.
- Parameters
-
mem_stat | Current memory statistics. |
◆ format_size()
QString MemoryInfoFetcher::format_size |
( |
quint64 |
size | ) |
|
|
static |
format_size Utility function to format byte size into human-readable string.
- Parameters
-
- Returns
- Formatted size string.
◆ set_capture_state()
void MemoryInfoFetcher::set_capture_state |
( |
bool |
st | ) |
|
set_capture_state Enables or disables memory information capturing.
- Parameters
-
st | True to start capturing, false to stop. |
◆ set_flush_freq()
void MemoryInfoFetcher::set_flush_freq |
( |
const int |
msecs | ) |
|
|
inline |
set_flush_freq Sets the frequency in milliseconds at which memory info is refreshed.
- Parameters
-
msecs | Flush interval in milliseconds. |
The documentation for this class was generated from the following files:
- extern_app/SystemState/Core/MemoryInfoFetcher.h
- extern_app/SystemState/Core/MemoryInfoFetcher.cpp