-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
问题:
- 行号不一致:traceback 和 probing 的行号差了很多(差8-12行)
- probing frames 缺失 foo:只显示了 bar,没有显示完整调用链
https://github.com/DeepLink-org/probing/blob/master/tests/ext/test_python_tracer.py
| 方法 | bar 位置 | foo 位置 |
|---|---|---|
| traceback | 第13行 | 第2行 |
| probing stacks | 第5行 | 第1行 |
| probing frames | 第5行 | - (缺失) |
预期结果
# 三种方式的行号应该一致
call stacks with traceback:
Frame: bar in . ../test_python_tracer.py:13
Frame: foo in . ../test_python_tracer. py:2
call stacks with probing stacks:
Frame: bar in .../test_python_tracer.py:13 # ← 应该和 traceback 相同
Frame: foo in . ../test_python_tracer. py:2 # ← 应该显示完整调用链
call stacks with probing frames:
Frame: bar in .../test_python_tracer.py:13
Frame: foo in .../test_python_tracer.py:2 # ← 不应该缺失Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels