summaryrefslogtreecommitdiffstats
path: root/scripts/simpletrace.py
diff options
context:
space:
mode:
authorJanosch Frank2016-01-11 16:17:48 +0100
committerPaolo Bonzini2016-01-26 15:58:12 +0100
commita90b87bf25d4d96a8c31a78eefe4633a0e9da3ad (patch)
tree0395323b9ee4e70bcc3f83e05e0c96f50a4ace84 /scripts/simpletrace.py
parentscripts/kvm/kvm_stat: Rename _perf_event_open (diff)
downloadqemu-a90b87bf25d4d96a8c31a78eefe4633a0e9da3ad.tar.gz
qemu-a90b87bf25d4d96a8c31a78eefe4633a0e9da3ad.tar.xz
qemu-a90b87bf25d4d96a8c31a78eefe4633a0e9da3ad.zip
scripts/kvm/kvm_stat: Introduce properties for providers
As previous commit authors used a mixture of setters/getters and direct access to class variables consolidating them the python way improved readability. Properties allow us to assign a value to a class variable through a setter without the need to call the setter ourselves. Reviewed-by: Jason J. Herne <jjherne@linux.vnet.ibm.com> Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com> Message-Id: <1452525484-32309-19-git-send-email-frankja@linux.vnet.ibm.com> [prop.setter is new in Python 2.6, which is the earliest supported version. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/simpletrace.py')
0 files changed, 0 insertions, 0 deletions