Add support for nvidia decoder and encoder utilization stats (#8150)

* Add encoder and decoder stats to nvidia hwaccel stats

* Fix

* Fix
This commit is contained in:
Nicolas Mowen
2023-10-13 08:44:18 -06:00
committed by GitHub
parent e32bd4ab15
commit 9b687d77ce
3 changed files with 20 additions and 0 deletions

View File

@@ -301,12 +301,16 @@ export default function System() {
<Tr>
<Th>GPU %</Th>
<Th>Memory %</Th>
{'dec' in gpu_usages[gpu] && (<Th>Decoder %</Th>)}
{'enc' in gpu_usages[gpu] && (<Th>Encoder %</Th>)}
</Tr>
</Thead>
<Tbody>
<Tr>
<Td>{gpu_usages[gpu]['gpu']}</Td>
<Td>{gpu_usages[gpu]['mem']}</Td>
{'dec' in gpu_usages[gpu] && (<Td>{gpu_usages[gpu]['dec']}</Td>)}
{'enc' in gpu_usages[gpu] && (<Td>{gpu_usages[gpu]['enc']}</Td>)}
</Tr>
</Tbody>
</Table>