summary refs log tree commit diff stats
path: root/scripts/analyse-locks-simpletrace.py
diff options
context:
space:
mode:
authorMads Ynddal <m.ynddal@samsung.com>2023-09-26 12:34:33 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2023-09-26 12:28:51 -0400
commitd1f89c23bd93e40e180d4fc727e691a698a6d522 (patch)
treee6091700482c0b9881d0f466f28462357ee6d775 /scripts/analyse-locks-simpletrace.py
parentb78234e65cad8c4899a2cfcc5e5cd8d33fce1b95 (diff)
downloadfocaccia-qemu-d1f89c23bd93e40e180d4fc727e691a698a6d522.tar.gz
focaccia-qemu-d1f89c23bd93e40e180d4fc727e691a698a6d522.zip
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>
Diffstat (limited to 'scripts/analyse-locks-simpletrace.py')
0 files changed, 0 insertions, 0 deletions