An ER diagram is needed to track student performance in a class. The diagram would include entities for Class and Student with a primary key, and a relationship between them. Student performance on graded activities would also be an entity related to Student.