summary refs log tree commit diff stats
path: root/hw/qdev.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-06-20 11:12:47 +0300
committerAnthony Liguori <aliguori@us.ibm.com>2011-06-22 07:18:38 -0500
commitf8e378f27f2a8b99bf9be0a9168ba0ea19eeb740 (patch)
treebdc5f4192241afbcc17f931557529d6e18e17a77 /hw/qdev.c
parent9319a6d3a6af9ae85556261e4a759eaddb49d734 (diff)
downloadfocaccia-qemu-f8e378f27f2a8b99bf9be0a9168ba0ea19eeb740.tar.gz
focaccia-qemu-f8e378f27f2a8b99bf9be0a9168ba0ea19eeb740.zip
Optimize screendump
When running kvm-autotest, fputc() is often the second highest (sometimes #1)
function showing up in a profile.  This is due to fputc() locking the file
for every byte written.

Optimize by buffering a line's worth of pixels and writing that out in a
single call.

Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev.c')
0 files changed, 0 insertions, 0 deletions