# python -m trace --count -C . somefile.py
# https://docs.python.org/zh-cn/3/library/trace.html
# python 用trace调试编译 python -m trace --trace 159_debug_trace.py


def main():
    print("xxxxx")

main()

# import sys
# import trace
# # create a Trace object, telling it what to ignore, and whether to
# # do tracing or line-counting or both.
# tracer = trace.Trace(
#     ignoredirs=[sys.prefix, sys.exec_prefix],
#     trace=0,
#     count=1)
#
# # run the new command using the given tracer
# tracer.run('main()')
#
# # make a report, placing output in the current directory
# r = tracer.results()
# r.write_results(show_missing=True, coverdir=".")


# python -m trace --count -C . somefile.py
# https://docs.python.org/zh-cn/3/library/trace.html
# python 用trace调试编译 python -m trace --trace 159_debug_trace.py


def main():
    print("xxxxx")

main()

# import sys
# import trace
# # create a Trace object, telling it what to ignore, and whether to
# # do tracing or line-counting or both.
# tracer = trace.Trace(
#     ignoredirs=[sys.prefix, sys.exec_prefix],
#     trace=0,
#     count=1)
#
# # run the new command using the given tracer
# tracer.run('main()')
#
# # make a report, placing output in the current directory
# r = tracer.results()
# r.write_results(show_missing=True, coverdir=".")


# python -m trace --count -C . somefile.py # https://docs.python.org/zh-cn/3/library/trace.html # python 用trace调试编译 python -m trace --trace 159_debug_trace.py # import sys # import trace # # create a Trace object, telling it what to ignore, and whether to # # do tracing or line-counting or both. # tracer = trace.Trace( #     ignoredirs=[sys.prefix, sys.exec_prefix], #     trace=0, #     count=1) # # # run the new command using the given tracer # tracer.run('main()') # # # make a report, placing output in the current directory # r = tracer.results() # r.write_results(show_missing=True, coverdir=".")