]> git.proxmox.com Git - mirror_qemu.git/commit
simpletrace: move logic of process into internal function
authorMads Ynddal <m.ynddal@samsung.com>
Tue, 26 Sep 2023 10:34:32 +0000 (12:34 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 26 Sep 2023 16:28:51 +0000 (12:28 -0400)
commitb78234e65cad8c4899a2cfcc5e5cd8d33fce1b95
tree542d54c1b41d65e517764de649bf70b39d8c45df
parent6f53641a980df2d1b38503b10bfda9236fa075b4
simpletrace: move logic of process into internal function

To avoid duplicate code depending on input types and to better handle
open/close of log with a context-manager, we move the logic of process into
_process.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Mads Ynddal <m.ynddal@samsung.com>
Message-id: 20230926103436.25700-11-mads@ynddal.dk
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
scripts/simpletrace.py