DtkDevice
DTK library for device.
载入中...
搜索中...
未找到
dmemorydevice.h
1
// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2
//
3
// SPDX-License-Identifier: LGPL-3.0-or-later
4
#ifndef DMEMORYDEVICE_H
5
#define DMEMORYDEVICE_H
6
7
#include "dtkdevice_global.h"
8
9
#include <QObject>
10
11
DDEVICE_BEGIN_NAMESPACE
12
13
class
DMemoryDevicePrivate;
14
class
LIBDTKDEVICESHARED_EXPORT
DMemoryDevice
:
public
QObject
15
{
16
public
:
17
explicit
DMemoryDevice
(QObject *parent =
nullptr
);
18
~DMemoryDevice
();
19
20
int
count
();
21
QString
vendor
(
int
index);
22
QString
model
(
int
index);
23
QString
totalWidth
(
int
index);
24
QString
dataWidth
(
int
index);
25
QString
type
(
int
index);
26
QString
speed
(
int
index);
27
QString
serialNumber
(
int
index);
28
QString
size
(
int
index);
29
QString
swapSize
();
30
31
QString
available
();
32
QString
buffers
();
33
QString
cached
();
34
QString
active
();
35
QString
inactive
();
36
QString
sharedSize
();
37
QString
swapFree
();
38
QString
swapCached
();
39
QString
slab
();
40
QString
dirty
();
41
QString
mapped
();
42
43
private
:
44
QScopedPointer<DMemoryDevicePrivate> d_ptr;
45
Q_DECLARE_PRIVATE(
DMemoryDevice
)
46
};
47
48
DDEVICE_END_NAMESPACE
49
50
#endif
// DMEMORYDEVICE_H
Dtk::Device::DMemoryDevice
内存设备信息.
Definition
dmemorydevice.h:15
Dtk::Device::DMemoryDevice::swapFree
QString swapFree()
获取可用交换空间大小.
Dtk::Device::DMemoryDevice::count
int count()
获取所有内存个数.
Dtk::Device::DMemoryDevice::available
QString available()
获取可用内存的大小.
Dtk::Device::DMemoryDevice::dirty
QString dirty()
获取脏页的大小.
Dtk::Device::DMemoryDevice::swapCached
QString swapCached()
获取交换缓存区大小.
Dtk::Device::DMemoryDevice::dataWidth
QString dataWidth(int index)
获取指定内存的数据位宽.
Dtk::Device::DMemoryDevice::type
QString type(int index)
获取指定内存的类型.
Dtk::Device::DMemoryDevice::swapSize
QString swapSize()
获取交换空间的大小.
Dtk::Device::DMemoryDevice::vendor
QString vendor(int index)
获取指定内存的厂商.
Dtk::Device::DMemoryDevice::inactive
QString inactive()
获取不活跃的缓冲文件大小.
Dtk::Device::DMemoryDevice::totalWidth
QString totalWidth(int index)
获取指定内存的总位宽.
Dtk::Device::DMemoryDevice::serialNumber
QString serialNumber(int index)
获取指定内存的序列号.
Dtk::Device::DMemoryDevice::active
QString active()
获取活跃的缓冲文件大小.
Dtk::Device::DMemoryDevice::cached
QString cached()
获取高速缓存的大小.
Dtk::Device::DMemoryDevice::buffers
QString buffers()
获取数据缓存的大小.
Dtk::Device::DMemoryDevice::size
QString size(int index)
获取指定内存的大小.
Dtk::Device::DMemoryDevice::slab
QString slab()
获取内核数据结构缓存大小.
Dtk::Device::DMemoryDevice::sharedSize
QString sharedSize()
获取共享内存的大小.
Dtk::Device::DMemoryDevice::model
QString model(int index)
获取指定内存的型号.
Dtk::Device::DMemoryDevice::mapped
QString mapped()
获取映射大小.
Dtk::Device::DMemoryDevice::speed
QString speed(int index)
获取指定内存的速度.
include
lsdevice
dmemorydevice.h
文档生成时间:2024-07-22-07:47 +00
Doxygen Version
1.9.8
制作者:deepin doc doc go SIG
文档使用CC-BY-4.0共享