{"id":323,"date":"2026-11-21T12:46:34","date_gmt":"2026-11-21T04:46:34","guid":{"rendered":"https:\/\/yykcj.com\/?p=323"},"modified":"2026-11-21T12:46:34","modified_gmt":"2026-11-21T04:46:34","slug":"go-%e6%80%a7%e8%83%bd%e5%88%86%e6%9e%90%e4%b8%8e%e4%bc%98%e5%8c%96%e5%ae%9e%e6%88%98%ef%bc%9a%e4%bb%8e-pprof-%e5%88%b0%e7%94%9f%e4%ba%a7%e7%8e%af%e5%a2%83%e8%b0%83%e4%bc%98","status":"publish","type":"post","link":"https:\/\/yykcj.com\/?p=323","title":{"rendered":"Go \u6027\u80fd\u5206\u6790\u4e0e\u4f18\u5316\u5b9e\u6218\uff1a\u4ece pprof \u5230\u751f\u4ea7\u73af\u5883\u8c03\u4f18"},"content":{"rendered":"<h2>\u80cc\u666f\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684 Go \u670d\u52a1\u53d8\u6162\u4e86\uff1f<\/h2>\n<p>Go \u8bed\u8a00\u4ee5\u9ad8\u6027\u80fd\u8457\u79f0\uff0c\u4f46\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\uff0c\u968f\u7740\u4e1a\u52a1\u903b\u8f91\u590d\u6742\u5316\uff0c\u670d\u52a1\u53ef\u80fd\u4f1a\u9010\u6e10\u51fa\u73b0\u54cd\u5e94\u53d8\u6162\u3001\u5185\u5b58\u66b4\u6da8\u7b49\u95ee\u9898\u3002\u5f88\u591a\u5f00\u53d1\u8005\u4e60\u60ef\u6027\u5730\u300c\u52a0\u673a\u5668\u300d\u6216\u300c\u91cd\u542f\u5927\u6cd5\u300d\uff0c\u5374\u5ffd\u7565\u4e86\u6027\u80fd\u95ee\u9898\u7684\u6839\u56e0\u5206\u6790\u3002<\/p>\n<p>\u672c\u6587\u5c06\u901a\u8fc7\u4e00\u4e2a\u6a21\u62df\u7684\u8ba2\u5355\u5904\u7406\u670d\u52a1\uff0c\u6f14\u793a\u5982\u4f55\u4f7f\u7528 Go \u5185\u7f6e\u7684 <strong>pprof<\/strong> \u5de5\u5177\u8fdb\u884c\u6027\u80fd\u5256\u6790\uff0c\u5b9a\u4f4d CPU \u548c\u5185\u5b58\u74f6\u9888\uff0c\u5e76\u5b9e\u65bd\u6709\u6548\u7684\u4f18\u5316\u3002\u6211\u4eec\u4e0d\u6b62\u6b65\u4e8e\u300c\u600e\u4e48\u7528 pprof\u300d\uff0c\u8fd8\u4f1a\u6df1\u5165\u63a2\u8ba8 <strong>\u51cf\u5c11\u5185\u5b58\u5206\u914d<\/strong>\u3001<strong>\u4f18\u5316 GC \u538b\u529b<\/strong> \u7b49\u8fdb\u9636\u5b9e\u8df5\uff0c\u6700\u540e\u7ed9\u51fa\u751f\u4ea7\u73af\u5883\u4e0b\u7684\u6027\u80fd\u76d1\u63a7\u5efa\u8bae\u3002<\/p>\n<h2>\u73af\u5883\u51c6\u5907\u4e0e\u793a\u4f8b\u4ee3\u7801<\/h2>\n<p>\u6211\u4eec\u5148\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684 HTTP \u670d\u52a1\uff0c\u5b83\u5305\u542b\u4e24\u4e2a\u63a5\u53e3\uff1a<\/p>\n<ul>\n<li><code>\/orders<\/code>\uff1a\u751f\u6210\u4e00\u6279\u8ba2\u5355\u5e76\u8ba1\u7b97\u603b\u4ef7\uff08\u6a21\u62df CPU \u5bc6\u96c6\u578b\u64cd\u4f5c\uff09<\/li>\n<li><code>\/memory<\/code>\uff1a\u5206\u914d\u5927\u91cf\u4e34\u65f6\u5bf9\u8c61\uff08\u6a21\u62df\u5185\u5b58\u5206\u914d\u538b\u529b\uff09<\/li>\n<\/ul>\n<pre><code class=\"language-go\">\n\/\/ main.go\npackage main\n\nimport (\n    &quot;encoding\/json&quot;\n    &quot;fmt&quot;\n    &quot;math\/rand&quot;\n    &quot;net\/http&quot;\n    &quot;time&quot;\n)\n\ntype Order struct {\n    ID    int\n    Items []Item\n}\n\ntype Item struct {\n    Name  string\n    Price float64\n}\n\nfunc generateOrders(n int) []Order {\n    orders := make([]Order, 0, n)\n    for i := 0; i &lt; n; i++ {\n        items := make([]Item, 0, 10)\n        for j := 0; j &lt; 10; j++ {\n            items = append(items, Item{\n                Name:  fmt.Sprintf(&quot;item-%d&quot;, j),\n                Price: rand.Float64() * 100,\n            })\n        }\n        orders = append(orders, Order{ID: i, Items: items})\n    }\n    return orders\n}\n\nfunc calculateTotal(orders []Order) float64 {\n    var total float64\n    for _, o := range orders {\n        for _, item := range o.Items {\n            total += item.Price\n        }\n    }\n    return total\n}\n\nfunc ordersHandler(w http.ResponseWriter, r *http.Request) {\n    start := time.Now()\n    orders := generateOrders(10000)\n    total := calculateTotal(orders)\n    json.NewEncoder(w).Encode(map[string]interface{}{\n        &quot;total&quot;: total,\n        &quot;count&quot;: len(orders),\n        &quot;time&quot;:  time.Since(start).String(),\n    })\n}\n\nfunc memoryHandler(w http.ResponseWriter, r *http.Request) {\n    \/\/ \u6a21\u62df\u9891\u7e41\u5206\u914d\u5c0f\u5bf9\u8c61\n    var result []string\n    for i := 0; i &lt; 100000; i++ {\n        result = append(result, fmt.Sprintf(&quot;data-%d&quot;, i))\n    }\n    w.Write([]byte(fmt.Sprintf(&quot;allocated %d strings\\n&quot;, len(result))))\n}\n\nfunc main() {\n    http.HandleFunc(&quot;\/orders&quot;, ordersHandler)\n    http.HandleFunc(&quot;\/memory&quot;, memoryHandler)\n    http.ListenAndServe(&quot;:8080&quot;, nil)\n}\n<\/code><\/pre>\n<p>\u8fd0\u884c\u670d\u52a1\uff1a<code>go run main.go<\/code>\u3002\u73b0\u5728\uff0c\u6211\u4eec\u6709\u4e86\u4e00\u4e2a\u53ef\u4ee5\u6d4b\u8bd5\u7684\u57fa\u51c6\u670d\u52a1\u3002<\/p>\n<h2>\u7b2c\u4e00\u6b65\uff1a\u542f\u7528 pprof<\/h2>\n<p>Go \u6807\u51c6\u5e93\u63d0\u4f9b\u4e86 <code>net\/http\/pprof<\/code>\uff0c\u53ea\u9700\u5bfc\u5165\u5373\u53ef\u81ea\u52a8\u6ce8\u518c\u8def\u7531\uff1a<\/p>\n<pre><code class=\"language-go\">\nimport _ &quot;net\/http\/pprof&quot;\n<\/code><\/pre>\n<p>\u5728 <code>main<\/code> \u51fd\u6570\u4e2d\u542f\u52a8 HTTP \u670d\u52a1\u540e\uff0c\u8bbf\u95ee <code>http:\/\/localhost:8080\/debug\/pprof\/<\/code> \u53ef\u4ee5\u770b\u5230\u6027\u80fd\u5206\u6790\u9875\u9762\u3002<\/p>\n<p><strong>\u6ce8\u610f<\/strong>\uff1a\u751f\u4ea7\u73af\u5883\u4e0d\u8981\u76f4\u63a5\u66b4\u9732 pprof \u7aef\u53e3\uff0c\u5efa\u8bae\u4f7f\u7528\u72ec\u7acb\u7684\u7aef\u53e3\u6216\u901a\u8fc7\u5185\u7f51\u8bbf\u95ee\u3002<\/p>\n<h2>\u7b2c\u4e8c\u6b65\uff1aCPU \u6027\u80fd\u5206\u6790<\/h2>\n<p>\u4f7f\u7528 <code>go tool pprof<\/code> \u91c7\u96c6 30 \u79d2\u7684 CPU \u6837\u672c\uff1a<\/p>\n<pre><code class=\"language-bash\">\ngo tool pprof http:\/\/localhost:8080\/debug\/pprof\/profile?seconds=30\n<\/code><\/pre>\n<p>\u5728\u91c7\u96c6\u671f\u95f4\uff0c\u7528 <code>ab<\/code> \u6216 <code>wrk<\/code> \u5bf9 <code>\/orders<\/code> \u63a5\u53e3\u65bd\u538b\uff1a<\/p>\n<pre><code class=\"language-bash\">\nab -n 1000 -c 10 http:\/\/localhost:8080\/orders\n<\/code><\/pre>\n<p>\u91c7\u6837\u7ed3\u675f\u540e\uff0c\u4f1a\u8fdb\u5165\u4ea4\u4e92\u5f0f\u7ec8\u7aef\u3002\u8f93\u5165 <code>top<\/code> \u67e5\u770b\u6700\u8017 CPU \u7684\u51fd\u6570\uff1a<\/p>\n<pre><code>\n(pprof) top\nShowing nodes accounting for 2.34s, 92.86% of 2.52s total\n      flat  flat%   sum%        cum   cum%\n     1.20s 47.62% 47.62%      1.20s 47.62%  math\/rand.Float64\n     0.80s 31.75% 79.37%      0.80s 31.75%  runtime.mallocgc\n     0.34s 13.49% 92.86%      0.34s 13.49%  fmt.Sprintf\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u770b\u5230 <code>math\/rand.Float64<\/code> \u548c <code>runtime.mallocgc<\/code> \u5360\u7528\u4e86\u5927\u91cf CPU\u3002<code>mallocgc<\/code> \u9ad8\u8bf4\u660e\u5185\u5b58\u5206\u914d\u9891\u7e41\uff0cGC \u538b\u529b\u5927\u3002<\/p>\n<p>\u4f7f\u7528 <code>list<\/code> \u547d\u4ee4\u67e5\u770b\u5177\u4f53\u4ee3\u7801\u884c\uff1a<\/p>\n<pre><code>\n(pprof) list generateOrders\n<\/code><\/pre>\n<p>\u8f93\u51fa\u4f1a\u663e\u793a\u6bcf\u4e00\u884c\u7684\u8017\u65f6\uff0c\u5e2e\u52a9\u6211\u4eec\u5b9a\u4f4d\u5230 <code>items := make([]Item, 0, 10)<\/code> \u548c <code>append<\/code> \u64cd\u4f5c\u3002<\/p>\n<p><strong>\u4f18\u5316\u601d\u8def<\/strong>\uff1a<\/p>\n<ol>\n<li>\u9884\u5206\u914d\u5207\u7247\u5bb9\u91cf\uff0c\u907f\u514d\u591a\u6b21\u6269\u5bb9\u3002<\/li>\n<li>\u51cf\u5c11 <code>fmt.Sprintf<\/code> \u7684\u4f7f\u7528\uff0c\u6539\u7528\u5b57\u7b26\u4e32\u62fc\u63a5\u6216 <code>strconv<\/code>\u3002<\/li>\n<li>\u4f7f\u7528 <code>math\/rand<\/code> \u7684\u5c40\u90e8\u5b9e\u4f8b\u907f\u514d\u5168\u5c40\u9501\u7ade\u4e89\uff08\u5728\u5e76\u53d1\u573a\u666f\u4e0b\uff09\u3002<\/li>\n<\/ol>\n<p>\u4f18\u5316\u540e\u7684 <code>generateOrders<\/code>\uff1a<\/p>\n<pre><code class=\"language-go\">\nfunc generateOrders(n int) []Order {\n    orders := make([]Order, n)\n    for i := 0; i &lt; n; i++ {\n        items := make([]Item, 10) \/\/ \u76f4\u63a5\u6307\u5b9a\u957f\u5ea6\n        for j := 0; j &lt; 10; j++ {\n            items[j] = Item{\n                Name:  &quot;item-&quot; + strconv.Itoa(j),\n                Price: rand.Float64() * 100,\n            }\n        }\n        orders[i] = Order{ID: i, Items: items}\n    }\n    return orders\n}\n<\/code><\/pre>\n<h2>\u7b2c\u4e09\u6b65\uff1a\u5185\u5b58\u6027\u80fd\u5206\u6790<\/h2>\n<p>\u5185\u5b58\u5206\u6790\u4e3b\u8981\u5173\u6ce8 <strong>\u5806\u5206\u914d<\/strong>\u3002\u4f7f\u7528 <code>pprof<\/code> \u91c7\u96c6\u5806\u5feb\u7167\uff1a<\/p>\n<pre><code class=\"language-bash\">\ngo tool pprof http:\/\/localhost:8080\/debug\/pprof\/heap\n<\/code><\/pre>\n<p>\u5728\u4ea4\u4e92\u6a21\u5f0f\u4e2d\u8f93\u5165 <code>top<\/code>\uff1a<\/p>\n<pre><code>\n(pprof) top\nShowing nodes accounting for 512MB, 100% of 512MB total\n      flat  flat%   sum%        cum   cum%\n  512.50MB   100%   100%   512.50MB   100%  main.memoryHandler\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u770b\u5230 <code>memoryHandler<\/code> \u5206\u914d\u4e86 512MB \u5185\u5b58\u3002\u4f7f\u7528 <code>list<\/code> \u67e5\u770b\u5177\u4f53\u884c\uff1a<\/p>\n<pre><code>\n(pprof) list memoryHandler\n<\/code><\/pre>\n<p>\u53d1\u73b0 <code>result = append(result, fmt.Sprintf(...))<\/code> \u662f\u7f6a\u9b41\u7978\u9996\u3002\u6bcf\u6b21 <code>append<\/code> \u90fd\u53ef\u80fd\u89e6\u53d1\u6269\u5bb9\uff0c\u4e14 <code>fmt.Sprintf<\/code> \u4ea7\u751f\u5927\u91cf\u4e34\u65f6\u5b57\u7b26\u4e32\u3002<\/p>\n<p><strong>\u4f18\u5316\u65b9\u6848<\/strong>\uff1a<\/p>\n<ol>\n<li>\u9884\u5206\u914d\u5207\u7247\u5bb9\u91cf\uff1a<code>result := make([]string, 0, 100000)<\/code><\/li>\n<li>\u4f7f\u7528 <code>strings.Builder<\/code> \u6216 <code>strconv<\/code> \u66ff\u4ee3 <code>fmt.Sprintf<\/code>\u3002<\/li>\n<\/ol>\n<p>\u4f18\u5316\u540e\uff1a<\/p>\n<pre><code class=\"language-go\">\nfunc memoryHandler(w http.ResponseWriter, r *http.Request) {\n    result := make([]string, 0, 100000)\n    for i := 0; i &lt; 100000; i++ {\n        result = append(result, &quot;data-&quot;+strconv.Itoa(i))\n    }\n    w.Write([]byte(fmt.Sprintf(&quot;allocated %d strings\\n&quot;, len(result))))\n}\n<\/code><\/pre>\n<p>\u91cd\u65b0\u6d4b\u8bd5\uff0c\u5185\u5b58\u5206\u914d\u5e94\u663e\u8457\u4e0b\u964d\u3002<\/p>\n<h2>\u7b2c\u56db\u6b65\uff1a\u6df1\u5165\u7406\u89e3 GC \u4e0e\u5185\u5b58\u5206\u914d<\/h2>\n<p>Go \u7684\u5783\u573e\u56de\u6536\u5668\u662f\u5e76\u53d1\u7684\u3001\u4e09\u8272\u6807\u8bb0\u6e05\u9664\uff0c\u4f46\u9891\u7e41\u7684\u5185\u5b58\u5206\u914d\u4ecd\u4f1a\u5bfc\u81f4 GC \u5468\u671f\u53d8\u77ed\u3001CPU \u5360\u7528\u5347\u9ad8\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7 <code>GODEBUG=gctrace=1<\/code> \u89c2\u5bdf GC \u65e5\u5fd7\uff1a<\/p>\n<pre><code class=\"language-bash\">\nGODEBUG=gctrace=1 go run main.go\n<\/code><\/pre>\n<p>\u8f93\u51fa\u7c7b\u4f3c\uff1a<\/p>\n<pre><code>\ngc 1 @0.012s 0%: 0.010+0.12+0.004 ms clock, 0.080+0.12\/0.24+0.032 ms cpu, 4-&gt;4-&gt;0 MB, 5 MB goal, 8 P\n<\/code><\/pre>\n<p>\u5173\u952e\u6307\u6807\uff1a<\/p>\n<ul>\n<li><code>4->4->0 MB<\/code>\uff1aGC \u524d\u5806\u5927\u5c0f -> GC \u540e\u5806\u5927\u5c0f -> \u6d3b\u8dc3\u5806\u5927\u5c0f<\/li>\n<li><code>5 MB goal<\/code>\uff1a\u4e0b\u6b21 GC \u7684\u76ee\u6807\u5806\u5927\u5c0f<\/li>\n<\/ul>\n<p>\u5982\u679c GC \u9891\u7e41\u89e6\u53d1\uff08\u5982\u6bcf\u79d2\u591a\u6b21\uff09\uff0c\u8bf4\u660e\u5185\u5b58\u5206\u914d\u901f\u7387\u8fc7\u9ad8\uff0c\u9700\u8981\u4f18\u5316\u3002<\/p>\n<p><strong>\u6700\u4f73\u5b9e\u8df5<\/strong>\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528 <code>sync.Pool<\/code> \u590d\u7528\u4e34\u65f6\u5bf9\u8c61\u3002<\/li>\n<li>\u907f\u514d\u5728\u70ed\u8def\u5f84\u4e2d\u4f7f\u7528 <code>fmt.Sprintf<\/code>\u3001<code>encoding\/json<\/code> \u7b49\u53cd\u5c04\u5bc6\u96c6\u578b\u64cd\u4f5c\u3002<\/li>\n<li>\u5bf9\u4e8e\u5927\u5207\u7247\uff0c\u8003\u8651\u5206\u5757\u5904\u7406\uff0c\u907f\u514d\u4e00\u6b21\u6027\u5206\u914d\u8fc7\u5927\u5185\u5b58\u3002<\/li>\n<\/ul>\n<h2>\u7b2c\u4e94\u6b65\uff1a\u751f\u4ea7\u73af\u5883\u6027\u80fd\u76d1\u63a7<\/h2>\n<p>\u751f\u4ea7\u73af\u5883\u4e0d\u80fd\u4e00\u76f4\u5f00\u7740 pprof\uff0c\u4f46\u53ef\u4ee5\u5b9a\u671f\u91c7\u6837\u5e76\u4fdd\u5b58\u6587\u4ef6\uff1a<\/p>\n<pre><code class=\"language-go\">\n\/\/ \u5728\u72ec\u7acb\u7aef\u53e3\u5f00\u542f pprof\n go func() {\n    http.ListenAndServe(&quot;localhost:6060&quot;, nil)\n}()\n<\/code><\/pre>\n<p>\u7136\u540e\u901a\u8fc7 <code>curl<\/code> \u5b9a\u671f\u91c7\u96c6\uff1a<\/p>\n<pre><code class=\"language-bash\">\ncurl -o cpu.pprof http:\/\/localhost:6060\/debug\/pprof\/profile?seconds=30\ncurl -o heap.pprof http:\/\/localhost:6060\/debug\/pprof\/heap\n<\/code><\/pre>\n<p>\u8fd8\u53ef\u4ee5\u4f7f\u7528 <code>go-torch<\/code> \u751f\u6210\u706b\u7130\u56fe\uff0c\u66f4\u76f4\u89c2\u5730\u5206\u6790\u70ed\u70b9\u3002<\/p>\n<p><strong>\u6ce8\u610f<\/strong>\uff1a\u91c7\u96c6\u6027\u80fd\u6570\u636e\u672c\u8eab\u6709\u5f00\u9500\uff0c\u5efa\u8bae\u5728\u4f4e\u5cf0\u671f\u8fdb\u884c\uff0c\u5e76\u63a7\u5236\u91c7\u6837\u65f6\u95f4\u3002<\/p>\n<h2>\u603b\u7ed3\u4e0e\u5ef6\u4f38<\/h2>\n<p>\u672c\u6587\u901a\u8fc7\u4e00\u4e2a\u793a\u4f8b\u670d\u52a1\uff0c\u6f14\u793a\u4e86 Go \u6027\u80fd\u5206\u6790\u7684\u57fa\u672c\u6d41\u7a0b\uff1a<\/p>\n<ol>\n<li>\u4f7f\u7528 <code>net\/http\/pprof<\/code> \u542f\u7528\u5206\u6790\u7aef\u70b9\u3002<\/li>\n<li>\u901a\u8fc7 CPU profile \u5b9a\u4f4d\u70ed\u70b9\u51fd\u6570\u3002<\/li>\n<li>\u901a\u8fc7 heap profile \u53d1\u73b0\u5185\u5b58\u5206\u914d\u95ee\u9898\u3002<\/li>\n<li>\u5b9e\u65bd\u4f18\u5316\uff1a\u9884\u5206\u914d\u3001\u51cf\u5c11\u4e34\u65f6\u5bf9\u8c61\u3001\u4f7f\u7528\u9ad8\u6548\u5b57\u7b26\u4e32\u64cd\u4f5c\u3002<\/li>\n<li>\u751f\u4ea7\u73af\u5883\u5b9a\u671f\u91c7\u6837\uff0c\u7ed3\u5408 GC \u65e5\u5fd7\u76d1\u63a7\u3002<\/li>\n<\/ol>\n<p>\u6027\u80fd\u4f18\u5316\u662f\u4e00\u4e2a\u6301\u7eed\u7684\u8fc7\u7a0b\uff0c\u5efa\u8bae\u5c06\u6027\u80fd\u6d4b\u8bd5\u7eb3\u5165 CI \u6d41\u7a0b\uff0c\u4f7f\u7528 <code>go test -bench<\/code> \u548c <code>-benchmem<\/code> \u76d1\u63a7\u57fa\u51c6\u53d8\u5316\u3002<\/p>\n<p><strong>\u5ef6\u4f38\u9605\u8bfb<\/strong>\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/blog.golang.org\/profiling-go-programs\">Profiling Go Programs<\/a><\/li>\n<li><a href=\"https:\/\/golang.org\/doc\/diagnostics\">Go \u5b98\u65b9\u6587\u6863\uff1a\u6027\u80fd\u5206\u6790<\/a><\/li>\n<li>\u4e66\u7c4d\u300aGo \u8bed\u8a00\u9ad8\u6027\u80fd\u7f16\u7a0b\u300b<\/li>\n<\/ul>\n<p>\u5e0c\u671b\u672c\u6587\u80fd\u5e2e\u52a9\u4f60\u5efa\u7acb\u7cfb\u7edf\u7684 Go \u6027\u80fd\u4f18\u5316\u601d\u8def\u3002\u5982\u679c\u6709\u95ee\u9898\uff0c\u6b22\u8fce\u7559\u8a00\u8ba8\u8bba\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u901a\u8fc7\u4e00\u4e2a\u771f\u5b9e\u7684 Go \u670d\u52a1\u6848\u4f8b\uff0c\u624b\u628a\u624b\u6559\u4f60\u4f7f\u7528 pprof \u8fdb\u884c CPU \u548c\u5185\u5b58\u5206\u6790\uff0c\u5b9a\u4f4d\u6027\u80fd\u74f6\u9888\uff0c\u5e76\u5206\u4eab\u51cf\u5c11\u5185\u5b58\u5206\u914d\u3001\u4f18\u5316 GC \u7b49\u5b9e\u7528\u6280\u5de7\uff0c\u6700\u540e\u4ecb\u7ecd\u751f\u4ea7\u73af\u5883\u4e0b\u7684\u6301\u7eed\u6027\u80fd\u76d1\u63a7\u65b9\u6848\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[303,92,93,66,6],"class_list":["post-323","post","type-post","status-publish","format-standard","hentry","category-3","category-4","tag-gc","tag-go","tag-pprof","tag-66","tag-6"],"_links":{"self":[{"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/posts\/323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yykcj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=323"}],"version-history":[{"count":0,"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/posts\/323\/revisions"}],"wp:attachment":[{"href":"https:\/\/yykcj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yykcj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yykcj.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}