diff options
author | Mads Ynddal <m.ynddal@samsung.com> | 2023-09-26 12:34:33 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2023-09-26 12:28:51 -0400 |
commit | d1f89c23bd93e40e180d4fc727e691a698a6d522 (patch) | |
tree | e6091700482c0b9881d0f466f28462357ee6d775 /io/channel-buffer.c | |
parent | b78234e65cad8c4899a2cfcc5e5cd8d33fce1b95 (diff) | |
download | qemu-d1f89c23bd93e40e180d4fc727e691a698a6d522.zip qemu-d1f89c23bd93e40e180d4fc727e691a698a6d522.tar.gz qemu-d1f89c23bd93e40e180d4fc727e691a698a6d522.tar.bz2 |
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 'io/channel-buffer.c')
0 files changed, 0 insertions, 0 deletions