Nvidia-smi equivalent for M1/M2 pro


I very recently bought the MBP M2 Pro and I have successfully installed PyTorch with MPS backend. Nevertheless, I couldn’t find any tool to check GPU memory usage from the command line. Does anyone know if there is any tool available for Apple Silicon GPUs equivalent to nvidia-smi? Thanks!