Is there anything out there for macOS for tracking CPU and resource usage by program over a longer period?

I’ve got something which seems to be spinning my CPU up, sometimes while the system should otherwise be sleeping, and I haven’t been able to track it down yet.

@ticky have you tried istat menu?
@ninny yeah, I love it, but it doesn’t track historical data per-process! Just the overall usage.