Measuring the CPU Utilization in a Guest OS

All,
I am new to virtualization. We are having a OpenSuse Host with KVM and have another Linux machine running as guest using qemu. I am developing an application in this Linux guest. How can I measure the CPU taken by this application on guest and host as well? Can try top/sar on both guest and host? Will it give me acurate usage details? Any pointer are welcome.

regards,
Ravi

Perhaps Munin can help you out? The guests you can measure as regular machines, the host with some of these plugins.

But as per the fine print: IntelĀ® Virtualization Technology requires a computer system with a processor, chipset, BIOS, virtual machine monitor (VMM) and for some uses, certain platform software, enabled for it. Functionality, performance or other benefit will vary depending on hardware and software configurations. Intel Virtualization Technology-enabled VMM applications are currently in development.