Test Failed
Push — develop ( d07c77...76509e )
by Nicolas
02:39 queued 16s
created

glances.plugins.gpu.cards.amd   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 28
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A AmdGPU.__init__() 0 3 1
A AmdGPU.exit() 0 3 1
A AmdGPU.get_device_stats() 0 4 1
1
# -*- coding: utf-8 -*-
2
#
3
# This file is part of Glances.
4
#
5
# SPDX-FileCopyrightText: 2024 Nicolas Hennion <[email protected]>
6
#
7
# SPDX-License-Identifier: LGPL-3.0-only
8
#
9
10
"""AMD Extension unit for Glances' GPU plugin."""
11
12
13
class AmdGPU:
14
    """GPU card class."""
15
16
    def __init__(self):
17
        """Init AMD  GPU card class."""
18
        pass
19
20
    def exit(self):
21
        """Close AMD GPU class."""
22
        pass
23
24
    def get_device_stats(self):
25
        """Get AMD GPU stats."""
26
        stats = []
27
        return stats
28