]> git.proxmox.com Git - mirror_qemu.git/commit
simpletrace: move event processing to Analyzer class
authorMads Ynddal <m.ynddal@samsung.com>
Tue, 26 Sep 2023 10:34:33 +0000 (12:34 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 26 Sep 2023 16:28:51 +0000 (12:28 -0400)
commitd1f89c23bd93e40e180d4fc727e691a698a6d522
treee6091700482c0b9881d0f466f28462357ee6d775
parentb78234e65cad8c4899a2cfcc5e5cd8d33fce1b95
simpletrace: move event processing to Analyzer class

Moved event processing to the Analyzer class to separate specific analyzer
logic (like caching and function signatures) from the _process function.
This allows for new types of Analyzer-based subclasses without changing
the core code.

Note, that the fn_cache is important for performance in cases where the
analyzer is branching away from the catch-all a lot. The cache has no
measurable performance penalty.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Mads Ynddal <m.ynddal@samsung.com>
Message-id: 20230926103436.25700-12-mads@ynddal.dk
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
scripts/simpletrace.py