1.Break at an address where you want to begin tracing.
2, Import lldb python script.
3,Use 'trace' command,and set end tracing addresses.Multi-address split by ";".
4,Result like ...
yangyss/lldb-trace
A python script .Instruction level tracing tool and block level tracing tool for lldb debugger. First tracing code, then dumping all valid code to file, finally analysing it.
Python