per-core usage in sample

Let the sample have per-core usage. This may be useful if we want to see if a container could fully utilize all cores.
Since VMs support hotplugging, do we need to take care of this case? Maybe add a TODO.