diff options
| author | bd <bdunahu@operationnull.com> | 2025-07-20 13:43:17 -0600 |
|---|---|---|
| committer | bd <bdunahu@operationnull.com> | 2025-07-20 13:43:17 -0600 |
| commit | 1eddfd07cad491ce8d216ee3fda72bdd9ecb9eae (patch) | |
| tree | accdf32e5696d1abe0e1916cffd8b22081b1409e /t/async-generator-and-comprehension.py | |
| parent | 2e208349d2e6f8f3d7fbbe853413549da9df0ce0 (diff) | |
Aergia.get_deepest_traceable_frame refactor, tests
Generators and list comprehension gives correct but less ideal results, matching yappi. Can this be improved in the future?
Diffstat (limited to 't/async-generator-and-comprehension.py')
| -rw-r--r-- | t/async-generator-and-comprehension.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/async-generator-and-comprehension.py b/t/async-generator-and-comprehension.py index ce85f45..2e1b60b 100644 --- a/t/async-generator-and-comprehension.py +++ b/t/async-generator-and-comprehension.py @@ -1,4 +1,5 @@ import asyncio +import yappi async def async_generator(): @@ -12,4 +13,8 @@ async def main(): print(sum(r)) +yappi.set_clock_type("wall") +yappi.start() asyncio.run(main()) +yappi.get_func_stats().print_all() +yappi.get_thread_stats().print_all() |
