| py = '3.15', save_mojo = <function save_mojo.<locals>._save at 0x7fb6aecca2a0>
|
|
|
| @allpythons()
|
| def test_native_wall_time(py, save_mojo):
|
| result = austin("-n", "-i", "1ms", *python(py), target("target34.py"))
|
| save_mojo(result.stdout)
|
| assert result.returncode == 0, result.stderr or result.stdout
|
|
|
| > assert has_frame(
|
| result.samples, filename="target34.py", function="keep_cpu_busy", line=32
|
| ), "Expected Python frame from target34.py"
|
| E AssertionError: Expected Python frame from target34.py
|
| E assert False
|
| E + where False = has_frame([AustinSample(pid=3497, iid=0, thread='SecondThread', metrics=AustinMetrics(time=22, memory=None), frames=(AustinFrame(filename='/usr/lib/x86_64-linux-gnu/libc.so.6', function='clone', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/usr/lib/x86_64-linux-gnu/libc.so.6', function='pthread_condattr_setpshared', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='pythread_wrapper', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='thread_run', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='_PyObject_VectorcallPrepend', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='_PyEval_Vector', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='_Py_VectorCallInstrumentation_StackRefS...g.py', function='Thread._bootstrap_inner', line=1218, line_end=1218, column=17, column_end=44), AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='PyLong_FromLong', line=0, line_end=0, column=0, column_end=0)), gc=None, idle=None), AustinSample(pid=3497, iid=0, thread='MainThread', metrics=AustinMetrics(time=1068, memory=None), frames=(AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='_Py_HandlePending', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='_PyThreadState_Attach', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='take_gil', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/usr/lib/x86_64-linux-gnu/libc.so.6', function='pthread_cond_timedwait', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/usr/lib/x86_64-linux-gnu/libc.so.6', function='__nptl_death_event', line=0, line_end=0, column=0, column_end=0)), gc=None, idle=None), ...], filename='target34.py', function='keep_cpu_busy', line=32)
|
| E + where [AustinSample(pid=3497, iid=0, thread='SecondThread', metrics=AustinMetrics(time=22, memory=None), frames=(AustinFrame(filename='/usr/lib/x86_64-linux-gnu/libc.so.6', function='clone', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/usr/lib/x86_64-linux-gnu/libc.so.6', function='pthread_condattr_setpshared', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='pythread_wrapper', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='thread_run', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='_PyObject_VectorcallPrepend', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='_PyEval_Vector', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='_Py_VectorCallInstrumentation_StackRefS...g.py', function='Thread._bootstrap_inner', line=1218, line_end=1218, column=17, column_end=44), AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='PyLong_FromLong', line=0, line_end=0, column=0, column_end=0)), gc=None, idle=None), AustinSample(pid=3497, iid=0, thread='MainThread', metrics=AustinMetrics(time=1068, memory=None), frames=(AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='_Py_HandlePending', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='_PyThreadState_Attach', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0', function='take_gil', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/usr/lib/x86_64-linux-gnu/libc.so.6', function='pthread_cond_timedwait', line=0, line_end=0, column=0, column_end=0), AustinFrame(filename='/usr/lib/x86_64-linux-gnu/libc.so.6', function='__nptl_death_event', line=0, line_end=0, column=0, column_end=0)), gc=None, idle=None), ...] = CompletedProcess(args=['src/austin', '-n', '-i', '1ms', 'python3.15', '/home/runner/work/austin/austin/test/targets/target34.py'], returncode=0, stdout=b'MOJ\x04\x01austin\x004.1.0\x00\x01interval\x001000\x00\x01mode\x00wall\x00\x01python\x003.15.0\x00\x02\xa96\x00SecondThread\x00\x0b\xb1\xb5\xcc\x02/usr/lib/x86_64-linux-gnu/libc.so.6\x00\x0b\xb2\xb5\xcc\x02__nptl_death_event\x00\x03\xb1\xb5\xcc\x82\xa0\xe8?\xb1\xb5\xcc\x02\xb2\xb5\xcc\x02\x00\x00\x00\x00\x0b\x8e\xf2\xcd\x02/usr/lib/x86_64-linux-gnu/libc.so.6\x00\x0b\x8f\xf2\xcd\x02pthread_cond_timedwait\x00\x03\x8e\xf2\xcd\x82\xa0\xe8?\x8e\xf2\xcd\x02\x8f\xf2\xcd\x02\x00\x00\x00\x00\x0b\xad\xc6\xc1\x08/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0\x00\x0b\xae\xc6\xc1\x08take_gil\x00\x03\xad\xc6\xc1\x88\xa0\xe8?\xad\xc6\xc1\x08\xae\xc6\xc1\x08\x00\x00\x00\x00\x0b\xb6\xf9\xc4\x08/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0\x00\x0b\xb7\xf9\xc4\x08_PyThreadState_Attach\x00\x03\xb6\xf9\xc4\x88\xa0\xe8?\xb6\xf9\xc4\x08\xb7\xf9\xc4\x08\x00\x00\x00\x00\x0b\x80\xfe\x93\t/opt/hostedtoolcache/Python/3.15.0-beta.2/x64/lib/libpython3.15.so.1.0\x00\x0b\x81\xfe\x93\t_Py_HandlePending\x00\x03\x8...b\x87\x95\x02\x00\x00\x00\x00\x03\x8b\x8a\x95\x82\xa0\xe8?\x8b\x8a\x95\x02\x8c\x8a\x95\x02\x00\x00\x00\x00\x03\x95\x82\xbd\x91\xf8\xf4*\x95\x82\xbd\x11\x96\x82\xbd\x11\x00\x00\x00\x00\x05\x95\x82\xbd\x91\xf8\xf4*\x05\x8b\x8a\x95\x82\xa0\xe8?\x05\x8a\x87\x95\x82\xa0\xe8?\x05\xbc\x9d\xa0\x89\xa0\xe8?\x05\xaf\xb5\xa0\x89\xa0\xe8?\x05\x99\xfe\xbf\x87\xa0\xe8?\x05\x97\xbe\x9a\x89\xa0\xe8?\x05\x97\x88\xab\x88\xa0\xe8?\x05\xab\xe4\xc1\x88\xa0\xe8?\x05\x8e\xf7\xd6\x82\xa0\xe8?\x05\x8d\xcc\xd5\x82\xa0\xe8?\t\xb4\x10\x01count\x003155\x00\x01duration\x001879359\x00\x01sampling\x0060,116,4511\x00\x01saturation\x003/1579\x00\x01errors\x000/3155\x00', stderr="\x1b[1m _ _ \x1b[0m\n\x1b[1m __ _ _ _ __| |_(_)_ _ \x1b[0m\n\x1b[1m/ _` | || (_-< _| | ' \\ \x1b[0m\n\x1b[1m\\__,_|\\_,_/__/\\__|_|_||_|\x1b[0m \x1b[1;36m4.1.0\x1b[0m [gcc 13.3.0]\n\nš \x1b[1mPython\x1b[0m version: \x1b[1;33m3.15.0\x1b[0m\n\nš \x1b[1mSampling Statistics\x1b[0m\n\n Total duration\x1b[0;30m . . . . . . \x1b[0m\x1b[1m1.88s\x1b[0m\n Average sampling rate\x1b[0;30m . . \x1b[0m\x1b[1m1.68 kHz\x1b[0m\n Error rate\x1b[0;30m . . . . . . . . \x1b[0m\x1b[1m0/3155\x1b[0m (\x1b[1m0.00%\x1b[0m)\n").samples
|
|
|
| test/functional/test_native.py:152: AssertionError
|