]> git.ipfire.org Git - thirdparty/qemu.git/commit
scripts/performance: Add dissect.py script
authorAhmed Karaman <ahmedkhaledkaraman@gmail.com>
Thu, 9 Jul 2020 05:20:55 +0000 (07:20 +0200)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 14 Jul 2020 20:22:22 +0000 (22:22 +0200)
commit01afa757b6f1b8c7858cc29b8332e9fb6aa1e16f
treef08a7ea500a0e57c343dc8e7e6dca5661aff6d51
parent1a53dfee92284d3016a579ef31d53367e84d9dd8
scripts/performance: Add dissect.py script

Python script that dissects QEMU execution into three main phases:
code generation, JIT execution and helpers execution.

Syntax:
dissect.py [-h] -- <qemu executable> [<qemu executable options>] \
                 <target executable> [<target executable options>]

[-h] - Print the script arguments help message.

Example of usage:
dissect.py -- qemu-arm coulomb_double-arm

Example output:
Total Instructions:        4,702,865,362

Code Generation:             115,819,309  2.463%
JIT Execution:             1,081,980,528 23.007%
Helpers:                   3,505,065,525 74.530%

Signed-off-by: Ahmed Karaman <ahmedkhaledkaraman@gmail.com>
Reviewed-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200709052055.2650-2-ahmedkhaledkaraman@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
scripts/performance/dissect.py [new file with mode: 0755]