go的四大调试工具之1--pprof使用

    xiaoxiao2022-07-07  193

    四大工具:


    go的调试方式:     1.Profiling:分析cpu/heap/threadcreat/goroutine/mutex使用情况,由runtime/pprof提供,见本文档tool介绍     2.Tracing:跟踪分析调用栈,由net/trace包提供,见本文档tool     3.Debugging:debug工具Delve和GDB,跟踪程序流     4.Runtime statistics and events:统计运行时的数据和时间         4.1Execution tracer         4.2GODEBUG


    参考:

    https://github.com/xiaodoujiao/hand-to-hand-optimize-go/blob/master/README.md


     

    最新回复(0)