I’m using torch 1.7.0 and when I run
prof.key_averages(group_by_stack_n=10).table(sort_by="cpu_time_total", row_limit=10)

It neither shows every level of the stack (it shows third party library functions, but not which functions I wrote that called them), nor does it show the full path or line number for the levels it does show, they cut off around 50 characters.
How can I get a full stack trace?