System page: add detector process mem% (#5028)

This commit is contained in:
James L 2023-01-12 00:11:45 +00:00 committed by GitHub
parent ddcae2d4aa
commit 6b123675c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,6 +144,7 @@ export default function System() {
<Th>P-ID</Th> <Th>P-ID</Th>
<Th>Inference Speed</Th> <Th>Inference Speed</Th>
<Th>CPU %</Th> <Th>CPU %</Th>
<Th>Memory %</Th>
</Tr> </Tr>
</Thead> </Thead>
<Tbody> <Tbody>
@ -151,6 +152,7 @@ export default function System() {
<Td>{detectors[detector]['pid']}</Td> <Td>{detectors[detector]['pid']}</Td>
<Td>{detectors[detector]['inference_speed']} ms</Td> <Td>{detectors[detector]['inference_speed']} ms</Td>
<Td>{cpu_usages[detectors[detector]['pid']]?.['cpu'] || '- '}%</Td> <Td>{cpu_usages[detectors[detector]['pid']]?.['cpu'] || '- '}%</Td>
<Td>{cpu_usages[detectors[detector]['pid']]?.['mem'] || '- '}%</Td>
</Tr> </Tr>
</Tbody> </Tbody>
</Table> </Table>