| [gw0] darwin -- Python 3.10.11 /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
|
|
|
| py = '3.12', mojo = False
|
|
|
| @allpythons()
|
| @mojo
|
| def test_fork_full_metrics(py, mojo):
|
| result = austin("-i", "10ms", "-f", *python(py), target("target34.py"), mojo=mojo)
|
| assert py in (result.stderr or result.stdout), result.stderr or result.stdout
|
|
|
| assert len(processes(result.stdout)) == 1
|
| ts = threads(result.stdout)
|
| assert len(ts) == 2, ts
|
|
|
| assert has_pattern(result.stdout, "target34.py:keep_cpu_busy:32")
|
| assert not has_pattern(result.stdout, "Unwanted")
|
|
|
| meta = metadata(result.stdout)
|
|
|
| assert meta["mode"] == "full"
|
|
|
| wall, cpu, alloc, dealloc = sum_metrics(result.stdout)
|
| d = int(meta["duration"])
|
|
|
| > assert 0 < 0.9 * d < wall < 2.1 * d
|
| E assert (0.9 * 6126689600) < 1727632
|
|
|
| test/functional/test_fork.py:205: AssertionError
|