<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                [TOC] > [github](https://github.com/arl/statsviz) ## 概述 ### 流程 1. Import "github.com/arl/statsviz" 2. Register statsviz HTTP handlers 2. Start your program 3. Open your browser at http://host:port/debug/statsviz ![](https://github.com/arl/statsviz/raw/readme-docs/heap.png) ![](https://github.com/arl/statsviz/raw/readme-docs/mspan-mcache.png) ## 示例 ### hello world <details> <summary>main.go</summary> ``` package main import ( "log" "net/http" "github.com/arl/statsviz" ) func main() { // code mux := http.NewServeMux() statsviz.Register(mux) statsviz.RegisterDefault() go func() { log.Println(http.ListenAndServe("localhost:6060", nil)) }() //code select {} } ``` </details> <br /> 執行 ``` > go run main.go ``` 瀏覽器訪問 `http://127.0.0.1:6060/debug/statsviz/` ### gin <details> <summary>main.go</summary> ``` package main import ( "github.com/gin-gonic/gin" "github.com/arl/statsviz" example "github.com/arl/statsviz/_example" ) func main() { // Force the GC to work to make the plots "move". go example.Work() router := gin.New() router.GET("/debug/statsviz/*filepath", func(context *gin.Context) { if context.Param("filepath") == "/ws" { statsviz.Ws(context.Writer, context.Request) return } statsviz.IndexAtRoot("/debug/statsviz").ServeHTTP(context.Writer, context.Request) }) router.Run(":8080") } ``` </details> <br /> 執行 ``` > go run main.go ``` 瀏覽器訪問 `http://127.0.0.1:8080/debug/statsviz/` ### 其他示例 > [github demo](https://github.com/arl/statsviz/tree/master/_example)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看