Skip to the content.

Date: 2025-10-07

🚀 Highlights


⚡ Async/Await Tracing

New APIs

Example

import asyncio
from callflow_tracer.async_tracer import trace_async, trace_scope_async, gather_traced, get_async_stats

@trace_async
async def fetch(i):
    await asyncio.sleep(0.05)
    return i

async def main():
    async with trace_scope_async("async_trace.html") as graph:
        results = await gather_traced(*[fetch(i) for i in range(10)])
    stats = get_async_stats(graph)
    print(stats)

asyncio.run(main())

📊 Comparison Mode

New APIs

Features

Example

from callflow_tracer import trace_scope
from callflow_tracer.comparison import export_comparison_html

with trace_scope() as before:
    slow()
with trace_scope() as after:
    fast()

export_comparison_html(before, after, "comparison.html", label1="Before", label2="After")

💾 Memory Leak Detection

New APIs

Example

from callflow_tracer.memory_leak_detector import detect_leaks

with detect_leaks("leak_report.html") as detector:
    leaked = []
    for i in range(10):
        leaked.append([0] * 10000)
        detector.take_snapshot(f"Iter_{i}")

Reports Include


🎨 UI/UX Fixes in HTML Visualizations


🔧 Developer Notes


📚 Where To Start


✅ Summary

v0.2.4 focuses on modern Python workloads (async), comparative performance analysis, and robustness via memory leak detection — all with polished visualization and documentation.