Mpstat (multiprocessor statistics) is a command-line tool in Unix-type operating systems that collects and displays performance statistics for all logical processors (CPUs) in the system. It is primarily used to monitor CPU usage, diagnose performance issues, and analyze how tasks are distributed across processors, especially in multi-core environments.