-
Notifications
You must be signed in to change notification settings - Fork 40
feat: [GPU] Add extra information display logic. #492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: [GPU] Add extra information display logic. #492
Conversation
Reviewer's GuideIntroduces handling of GPU version and dynamic extra GPU attributes by refactoring info parsing to collect unknown keys into a new map and appending them to the display list. Entity relationship diagram for GPU info attributes and extra infoerDiagram
DEVICE_GPU {
string Name
string Vendor
string Model
string Version
string Graphics_Memory
}
EXTRA_INFO {
string Key
string Value
}
DEVICE_GPU ||--o{ EXTRA_INFO : has
Class diagram for updated DeviceGpu class with extra info handlingclassDiagram
class DeviceGpu {
- QString m_Model
- QString m_GraphicsMemory
- QString m_Version
- QMap<QString, QString> m_extraInfo
+ void setGpuInfo(const QMap<QString, QString> &mapInfo)
+ void setGpuInfoByCustom(const QMap<QString, QString> &mapInfo)
+ void loadOtherDeviceInfo()
+ void loadTableData()
- void appendExtraInfoToOtherInfo()
}
DeviceGpu --|> DeviceBaseInfo
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review代码审查意见:
综上所述,建议对代码进行重构,以提高代码的可读性、可维护性和安全性。 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: GongHeng2017, max-lvs The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
-- Add extra information display logic. Log: add feature for GPU. Task: https://pms.uniontech.com/task-view-378987.html
8b3e354 to
a8e0fda
Compare
|
/forcemerge |
-- Add extra information display logic.
Log: add feature for GPU.
Task: https://pms.uniontech.com/task-view-378987.html
Summary by Sourcery
Introduce dynamic GPU extra information handling by parsing a new 'Version' field and aggregating all unrecognized GPU attributes into a generic extra info map which is appended to the device details list.
New Features: