As @closetnoc states what you are after is known as the performance monitor in Windows.
To launch it open the run dialog and type in perfmon
and press enter.
To get an immediate and real-time view of CPU utilization click on Performance Monitor
on the left hand console tree. The colour scheme of the graph is different (red over white), but it is the same graph as you can see under Task Manager.
To enable logging you have to create a new Data Collector set. On the navigation panel on the left, expand Data Collector Set
and right click on User Defined
. From the new menu click Data Collector Set
.

Give a name to the set that you can recognize later, and choose the radio button Create Manually
. Click next.

Under type of data choose Create Data Log
and check the box Performance Counter
. Click next.

Now is the time to choose the performance counters which you would like to log. Click on the Add
button and choose one of the many avaiable counters, You can log processor utilization, processor idle time or interrupt time, memory usage, etc. In this example, we choose processor time.

Adjust the poll interval, 5 second should do. At this point you can click Finish
.
Once the data set has been created run it. The data collector set will start recording data from the chosen performance monitor. Reports aren't available when the data set is running. After you stop it, you can see your report under the reports directory in the navigation panel.
