Mads Ynddal 87617b9ae6 simpletrace: made Analyzer into context-manager
Instead of explicitly calling `begin` and `end`, we can change the class
to use the context-manager paradigm. This is mostly a styling choice,
used in modern Python code. But it also allows for more advanced analyzers
to handle exceptions gracefully in the `__exit__` method (not
demonstrated here).

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Mads Ynddal <m.ynddal@samsung.com>
Message-id: 20230926103436.25700-9-mads@ynddal.dk
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2023-09-26 12:28:51 -04:00
..
2023-09-08 13:08:52 +03:00
2023-09-08 13:08:52 +03:00
2023-09-08 13:08:52 +03:00
2023-09-08 13:08:52 +03:00
2021-01-12 12:38:03 +01:00
2022-04-21 11:01:00 -04:00
2023-09-08 13:08:52 +03:00
2023-06-01 11:05:05 -04:00
2023-09-08 13:08:52 +03:00
2020-08-21 06:30:14 -04:00
2021-01-12 12:38:03 +01:00
2023-09-08 13:08:52 +03:00