{"id":454,"date":"2021-09-10T01:23:39","date_gmt":"2021-09-09T17:23:39","guid":{"rendered":"https:\/\/blog.cauchyschwarz.com\/?p=454"},"modified":"2021-09-10T02:05:30","modified_gmt":"2021-09-09T18:05:30","slug":"android-process-native-heap-memory-analysis","status":"publish","type":"post","link":"https:\/\/blog.cauchyschwarz.com\/?p=454","title":{"rendered":"Android Process Native Heap Memory Analysis"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69d6677d70624\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69d6677d70624\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=454\/#%E4%BD%BF%E7%94%A8dumpsys%E5%91%BD%E4%BB%A4%E6%9F%A5%E7%9C%8B%E5%86%85%E5%AD%98%E5%8D%A0%E7%94%A8\" >\u4f7f\u7528dumpsys\u547d\u4ee4\u67e5\u770b\u5185\u5b58\u5360\u7528<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=454\/#dumpsys_meminfo_package_namepid_-d\" >dumpsys meminfo package_name|pid [-d]<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=454\/#%E4%BD%BF%E7%94%A8Malloc_Debug\" >\u4f7f\u7528Malloc Debug<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/blog.cauchyschwarz.com\/?p=454\/#%E4%BD%BF%E7%94%A8ddms\" >\u4f7f\u7528ddms<\/a><\/li><\/ul><\/nav><\/div>\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%BD%BF%E7%94%A8dumpsys%E5%91%BD%E4%BB%A4%E6%9F%A5%E7%9C%8B%E5%86%85%E5%AD%98%E5%8D%A0%E7%94%A8\"><\/span>\u4f7f\u7528<a href=\"https:\/\/developer.android.com\/studio\/command-line\/dumpsys.html\">dumpsys<\/a>\u547d\u4ee4\u67e5\u770b\u5185\u5b58\u5360\u7528<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"dumpsys_meminfo_package_namepid_-d\"><\/span>dumpsys meminfo package_name|pid [-d]<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Proportional Set Size(PSS)<br>PSS\u5927\u6982\u53ef\u4ee5\u4ee3\u8868\u4e00\u4e2a\u8fdb\u7a0b\u6240\u5360\u7528\u7684\u771f\u5b9e\u5185\u5b58\uff0c\u5176\u8ba1\u7b97\u65b9\u5f0f\u4e3a\uff1a\\(  PSS = private clean + private dirty + shared clean \/ (number of shared processes) + shared dirty \/ (number of shared processes)  \\)<\/li><li>RSS<br>\\( RSS = private dirty + private clean + shared dirty + shared clean \\)<\/li><\/ul>\n\n\n\n<p>dumpsys meminfo package_name|pid [-d]\u8f93\u51fa\u6765\u7684\u4e1c\u897f\u5176\u5b9e\u662f\u901a\u8fc7\u7edf\u8ba1\u6587\u4ef6\/proc\/pid\/smaps\/\u91cc\u7684\u4e1c\u897f\u7edf\u8ba1\u51fa\u6765\u7684\uff0c\u5177\u4f53\u662f\u600e\u4e48\u7b97\u7684\u53ef\u4ee5\u53c2\u8003Android\u6e90\u7801\u91cc\u7684Android_os_Debug.cpp\u91cc\u7684\u4ee3\u7801\u3002\u6839\u636esmaps\u91cc\u7684\u6bcf\u4e2a\u6bb5\u7684\u540d\u5b57(description)\u53bb\u5224\u65ad\u8be5\u6bb5\u662f\u5c5e\u4e8enative\u8fd8\u662fDalvik\uff0c\u662f\u5c5e\u4e8e\u5806\u8fd8\u662f\u6808(\u5982\u679c\u4e00\u6bb5\u6ca1\u6709description\uff0c\u90a3\u4e48\u5c31\u4f7f\u7528\u5176\u524d\u9762\u6700\u8fd1\u7684\u6709description\u7684\u4e00\u6bb5\u7684description)\uff0c\u7136\u540e\u5c06\u8be5\u6bb5\u7684private clean\u3001private dirty\u3001shared clean\u3001shared dirty\u7b49\u503c\u52a0\u5230\u76f8\u5e94\u7684\u7edf\u8ba1\u6570\u636e\u91cc\u9762\u53bb\u3002\u6bd4\u5982native heap\u7684\u5927\u5c0f\u5c31\u662f\u5c06smaps\u91cc\u6240\u6709\u540d\u5b57\u4e3a[anon:libc_malloc]\u548c[heap]\u7684\u6bb5\u52a0\u8d77\u6765\u5f97\u5230\u7684\u3002\u73b0\u4ee3\u7684malloc\u51fd\u6570\u5728\u5206\u914d\u5806\u5185\u5b58\u65f6\u6709\u4e00\u4e2a\u9608\u503cM_MMAP_THRESHOLD\uff0c\u5f53\u8981\u5206\u914d\u7684\u5806\u5185\u5b58\u5927\u5c0f\u5c0f\u4e8e\u8fd9\u4e2a\u9608\u503c\u65f6\u5c31\u901a\u8fc7sbrk\u51fd\u6570\u8f85\u52a9\u5206\u914d\uff0c\u5426\u5219\u5c31\u7528mmap\u7684\u65b9\u5f0f\u3002\u7528sbrk\u51fd\u6570\u5206\u914d\u7684\u5806\u5185\u5b58\u5c31\u7b97\u5230[heap]\u91cc\u9762\u53bb(\u4f46\u662f[heap]\u4e0d\u53ea\u5305\u542b\u4e86\u901a\u8fc7malloc\u5206\u914d\u7684\u5185\u5b58)\uff0c\u7528mmap\u65b9\u5f0f\u5206\u914d\u7684\u5bf9\u5185\u5b58\u5c31\u662f\u533f\u540d\u6620\u5c04[anon:libc_malloc]\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%BD%BF%E7%94%A8Malloc_Debug\"><\/span>\u4f7f\u7528Malloc Debug<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/android.googlesource.com\/platform\/bionic\/+\/master\/libc\/malloc_debug\/README_marshmallow_and_earlier.md\">\u9002\u7528\u4e8eAndroid N\u4e4b\u524d\u7684\u7248\u672c\u7684\u65b9\u5f0f<\/a><\/li><li>\u9700\u8981root\u6743\u9650\uff0c\u56e0\u4e3a\u8981\u6267\u884c<code>setprop<\/code>\u547d\u4ee4<\/li><li>\u9700\u8981\u7cfb\u7edf\u6709\u76f8\u5e94\u7684<em>libc_malloc_debug_qemu.so<\/em>\u548c<em>libc_malloc_debug_leak.so<\/em>\u6587\u4ef6<br>\u5982\u679c\u662f\u6a21\u62df\u5668\u6216\u8005eng\u3001userdebug\u7248\u672c\u7684\u7cfb\u7edf\u5e94\u8be5\u81ea\u5e26\u8fd9\u4e9b\u5e93\u6587\u4ef6\uff0c\u6ca1\u6709\u5c31\u81ea\u5df1\u53bb\u627e\u5bf9\u5e94\u7248\u672c\u7684\u5e93\u6587\u4ef6\uff0croot\u7cfb\u7edf\u4e4b\u540e\u653e\u8fdb\u53bb<\/li><li>\u64cd\u4f5c\u6b65\u9aa4\uff1a<ol><li>adb shell\u767b\u5165Android\u7cfb\u7edf\u540e\u53d6\u5f97root\u6743\u9650<\/li><li>\u6267\u884cstop<\/li><li>\u6267\u884csetprop libc.debug.malloc 1(\u53ef\u4ee5\u6309\u7167\u6587\u6863\u8bbe\u4e3a\u5176\u5b83\u7684\u503c\uff0c\u4e0d\u8fc71\u662f\u6700\u5e38\u7528\u7684)<br>\u53ef\u4ee5\u7528setprop libc.debug.malloc.program program_name\u6307\u5b9a\u53ea\u5bf9\u67d0\u4e2a\u5e94\u7528\u7a0b\u5e8f\u4f5cmalloc\u7684backtrace\u3002\u5bf9\u4e8e\u4e8c\u8fdb\u5236\u53ef\u6267\u884c\u6587\u4ef6program_name\u5c31\u7528\u8be5\u53ef\u6267\u884c\u6587\u4ef6\u7684\u540d\u5b57\uff0c\u5bf9\u4e8e\u6211\u4eec\u8981profile\u7684\u5e94\u7528\uff0c\u5c31\u7528app_process\u3002<\/li><li>\u6267\u884c<code>start<\/code>\uff0c\u5f85\u7cfb\u7edf\u91cd\u542f(\u5176\u5b9e\u5e76\u6ca1\u6709)\u4e4b\u540e\uff0c\u6700\u597d\u518d\u7528getprop libc.debug.malloc\u786e\u8ba4\u4e00\u4e0b\u4e4b\u524d\u7684setprop libc.debug.malloc=1\u662f\u6267\u884c\u6210\u529f\u4e86\u7684\u3002\u8fd9\u91cc\u7684\u91cd\u542f\u5e76\u4e0d\u662f\u771f\u6b63\u7684\u91cd\u542f\uff0c\u5e94\u8be5\u662fandroid\u7cfb\u7edf\u628a\u4ee5\u524d\u5e94\u7528\u52a0\u8f7d\u7684libc\u5e93\u7ed9\u6362\u6210\u4e86debug\u7528\u7684\u5e93\u3002\u800c\u4e14\u8fd9\u4e2a\u8fc7\u7a0b\u8c8c\u4f3c\u4f1a\u5de8\u957f\u65e0\u6bd4\uff0c\u5728nexus9\u4e0a\u51e0\u4e4e\u8981\u82b1\u534a\u5929(\u771f\u7684\u534a\u5929)\u7684\u65f6\u95f4\uff0c\u201c\u91cd\u542f\u201d\u7684\u65f6\u5019android LOG(\u5546\u6807\uff0c\u4e0d\u662f\u65e5\u5fd7\u3002\u3002\u3002)\u4f1a\u95ea\u65e0\u6570\u904d\uff0c\u4e0d\u8981\u4ee5\u4e3a\u662f\u5931\u8d25\u4e86\uff0c\u800c\u662f\u8981\u8010\u5fc3\u5730\u7b49\u5f85\u6574\u4e2a\u8fc7\u7a0b\u5b8c\u6210\u3002\u5982\u679c\u4e0d\u8010\u70e6\u5730\u4ee5\u4e3a\u8fd9\u4e2a\u8fc7\u7a0b\u8bbe\u7f6e\u5931\u8d25\u4e86\uff0c\u5f3a\u884c\u5173\u673a\uff0c\u90a3\u4e48\u53ea\u80fd\u6309\u7167\u8fd9\u4e2a\u6b65\u9aa4\u91cd\u65b0\u518d\u6765\u4e00\u904d\uff0c\u800c\u4e14\u4e4b\u524d\u7b49\u7684\u65f6\u95f4\u90fd\u767d\u7b49\u4e86\u3002<\/li><li>\u5728\u60f3\u8981profile\u7684\u5e94\u7528\u5728\u8fd0\u884c\u7684\u65f6\u5019\uff0c\u6267\u884c\u547d\u4ee4am dumpheap -n &lt;pid&gt; \/data\/local\/tmp\/heapdump.txt\uff0c\u5c31\u628a\u8be5\u5e94\u7528\u6b64\u65f6\u6b64\u523b\u901a\u8fc7native\u5c42malloc\u5206\u914d\u7684\u5185\u5b58\u60c5\u51b5\u7ed9dump\u5230<em>\/data\/local\/tmp\/heapdump.txt<\/em>\u6587\u4ef6\u91cc\u4e86<\/li><li>dump\u51fa\u6765\u7684\u5806\u5185\u5b58\u5206\u914d\u60c5\u51b5\uff0c\u5e76\u4e0d\u65b9\u4fbf\u4eba\u8089\u773c\u89c2\u770b\uff0c\u9700\u8981\u901a\u8fc7native_heapdump_viewer.py\u8fd9\u4e2a\u811a\u672c\u4f5c\u8fdb\u4e00\u6b65\u7684\u8f6c\u6362(\u5176\u5b9e\u5c31\u662f\u6839\u636e\u5404\u4e2a\u5e93\u5728\u8be5\u5e94\u7528\u8fdb\u7a0b\u91cc\u7684map\u60c5\u51b5\u548c\u5404\u5e93\u7684symbols\u6587\u4ef6\uff0c\u7528addr2line\u7b97\u51fa\u6bcf\u6b21malloc\u8c03\u7528\u5728c\/c++\u4ee3\u7801\u91cc\u6240\u5904\u7684\u4f4d\u7f6e)\u3002\u547d\u4ee4\u793a\u4f8b\uff1apython development\/scripts\/native_heapdump_viewer.py &#8211;symbols \/some\/path\/to\/symbols\/ heap.txt &gt; heap_info.txt \u8fd9\u91cc&#8211;symbols\u9009\u9879\u6307\u5b9a\u7684\u76ee\u5f55\u662f\u542b\u6709\u8981\u5206\u6790\u7684\u5e94\u7528\u4f7f\u7528\u7684so\u5e93\u7684\u5e26\u7b26\u53f7\u7248\u672c\u3002\u4e14\u8be5\u76ee\u5f55\u4e0b\u7684\u5404so\u5e93\u7684\u8def\u5f84\u5e94\u8be5\u548cAndroid\u7cfb\u7edf\u4e0a\u8be5\u5e94\u7528\u4f7f\u7528\u7684so\u5e93\u8def\u5f84\u4e00\u81f4\uff0c\u6bd4\u5982\u8981\u5206\u6790\u7684\u5e94\u7528\u4f7f\u7528\u4e86\/data\/app\/myapp\/foo.so\uff0c\u90a3\u4e48\u6309\u7167\u4e0a\u9762\u8fd9\u4e2a\u547d\u4ee4\u6307\u5b9a\u7684symbols\u76ee\u5f55\uff0c\u5e26\u7b26\u53f7\u7684foo.so\u7684\u8def\u5f84\u5e94\u8be5\u662f\/some\/path\/to\/symbols\/data\/app\/myapp\/foo.so\u3002<\/li><\/ol><\/li><li><a href=\"https:\/\/android.googlesource.com\/platform\/bionic\/+\/master\/libc\/malloc_debug\/README.md\">\u9002\u7528\u4e8eAndroid N\u53ca\u4e4b\u540e\u7684\u7248\u672c\u7684\u65b9\u5f0f<\/a><\/li><li>\u9700\u8981root\u6743\u9650\uff0c\u56e0\u4e3a\u8981\u6267\u884csetprop\u547d\u4ee4<\/li><li>\u9700\u8981\u7cfb\u7edf\u6709\u76f8\u5e94\u7684<em>libc_malloc_debug.so<\/em>\u6587\u4ef6<br>\u5982\u679c\u662f\u6a21\u62df\u5668\u6216\u8005eng\u3001userdebug\u7248\u672c\u7684\u7cfb\u7edf\u5e94\u8be5\u81ea\u5e26\u8fd9\u4e9b\u5e93\u6587\u4ef6\uff0c\u6ca1\u6709\u5c31\u81ea\u5df1\u53bb\u627e\u5bf9\u5e94\u7248\u672c\u7684\u5e93\u6587\u4ef6\uff0croot\u7cfb\u7edf\u4e4b\u540e\u653e\u8fdb\u53bb<\/li><li>\u64cd\u4f5c\u6b65\u9aa4\uff1a \u524d\u9762\u51e0\u6b65\u548cAndroid N\u4e4b\u524d\u7684\u7248\u672c\u57fa\u672c\u90fd\u4e00\u6837\uff0c\u4e0d\u540c\u4e4b\u5904\u4e3b\u8981\u5728\u4e8esetprop\u7684\u65b9\u5f0f\u4e0d\u4e00\u6837\u3002\u4e0d\u518d\u662f\u4e3a<em>libc.debug.malloc<\/em>\u8bbe\u7f6e\u4e00\u4e2a\u6570\u5b57\u7684\u503c\uff0c\u800c\u662f\u8bbe\u7f6e\u9009\u9879\uff1a<em>libc.debug.malloc.options<\/em>\u3002\u53ef\u4ee5\u6307\u5b9abacktrace\u7684\u6df1\u5ea6:setprop libc.debug.malloc.options backtrace=32;\u6216\u8005\u540c\u65f6\u8bbe\u7f6e\u591a\u4e2a\u9009\u9879\uff1asetprop libc.debug.malloc.options &#8220;backtrace guards&#8221;;\u751a\u81f3\u901a\u8fc7\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u8bbe\u7f6emalloc debug\u7684\u5de5\u4f5c\u65b9\u5f0f\u3002<\/li><\/ul>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%BD%BF%E7%94%A8ddms\"><\/span>\u4f7f\u7528ddms<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>ddms\u5de5\u4f5c\u539f\u7406\u548c\u4e0a\u9762\u5e94\u8be5\u662f\u4e00\u6837\u7684\u3002\u4f46\u662f\u5b9e\u9645\u5de5\u4f5c\u4e2d\u7528\u4e0a\u9762malloc debug\u65b9\u5f0f\u627e\u51fa\u7684native\u5185\u5b58\u5360\u7528\u603b\u662f\u6bd4dumpsys meminfo\u547d\u4ee4\u663e\u793a\u7684\u5c11\u4e00\u4e9b\u3002\u7528ddms\u627e\u51fa\u7684\u5185\u5b58\u5360\u7528\u5c31\u5f88\u5168\uff0c\u6211\u4e5f\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48\uff0c\u6240\u4ee5\u8fd8\u662f\u9700\u8981\u8bb0\u5f55\u4e00\u4e0b\u4f7f\u7528\u8fd9\u4e2a\u5de5\u5177\u7684\u65b9\u6cd5\u3002<\/p>\n\n\n\n<p>\u5de5\u5177\u4e0b\u8f7d\uff1a<br><a href=\"https:\/\/developer.android.com\/studio\/releases\/sdk-tools.html\">sdk tools<\/a>\u7684\u53d1\u884c\u8bf4\u660e\u8bf4\u572825.3.0\u7248\u672c\u628addms\u5de5\u5177\u7ed9\u79fb\u9664\u6389\u4e86\uff0c\u6240\u4ee5\u9700\u8981\u4e0b\u4e00\u4e2a25.2.5\u7248\u672c\u7684ddms\u5de5\u5177\u3002\u4e0b\u8f7d\u5730\u5740\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/dl.google.com\/android\/repository\/tools_r25.2.5-windows.zip\">windows<\/a><\/li><li><a href=\"https:\/\/dl.google.com\/android\/repository\/tools_r25.2.5-linux.zip\">linux<\/a><\/li><\/ul>\n\n\n\n<p>\u4f7f\u7528ddms\u7684tips\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u6253\u5f00native\u5185\u5b58trace\u9875\u9762\uff1a<br>\u5728windows\u4e0b\u4fee\u6539C:\\Users\\someone.android\\ddms.cfg\u6587\u4ef6\uff0c\u6dfb\u52a0native=true\u3002\u5728Linux\u4e0b\u5219\u662f\u5f80\/home\/someone\/.android\/ddms.cfg\u6587\u4ef6\u91cc\u6dfb\u52a0\u540c\u6837\u7684\u4e00\u53e5\u8bdd\u3002<\/li><li>\u8bbe\u7f6eaddr2line\u7684\u4f4d\u7f6e\u548csymbols\u7684\u4f4d\u7f6e<br>\u5728\u542f\u52a8ddms\u811a\u672c\u524d\uff0c\u5148\u5728\u547d\u4ee4\u884c\u91cc\u8bbe\u7f6e\u73af\u5883\u53d8\u91cfANDROID_ADDR2LINE\u6307\u5411\u5408\u9002\u7684addr2line\u7a0b\u5e8f\uff0c\u8bbe\u7f6e\u73af\u5883\u53d8\u91cfANDROID_SYMBOLS\u6307\u5411\u5e26\u7b26\u53f7\u7248\u672c\u7684so\u5e93\u7684\u6587\u4ef6\u5939(so\u5e93\u53ef\u4ee5\u76f4\u63a5\u653e\u5728\u8fd9\u4e2a\u6587\u4ef6\u5939\u91cc\uff0c\u4e0d\u9700\u8981\u5411malloc debug\u91cc\u90a3\u6837\u8fd8\u8981\u4fdd\u6301\u548candroid\u7cfb\u7edf\u91cc\u4e00\u6837\u7684\u8def\u5f84)\u3002\u8fd9\u6837\u751f\u6210\u7684ddms heap snapshot\u4f1a\u628a\u6bcf\u6b21malloc\u8c03\u7528\u7684\u51fd\u6570\u548c\u4f4d\u7f6e\u90fd\u663e\u793a\u51fa\u6765\u3002<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528dumpsys\u547d\u4ee4\u67e5\u770b\u5185\u5b58\u5360\u7528 dumpsys meminfo package_name|pid [-d] Proportional Set Size(PSS)PSS\u5927\u6982\u53ef\u4ee5\u4ee3\u8868\u4e00\u4e2a\u8fdb\u7a0b\u6240\u5360\u7528\u7684\u771f&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[50],"class_list":["post-454","post","type-post","status-publish","format-standard","hentry","category-10","tag-android"],"_links":{"self":[{"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/posts\/454","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=454"}],"version-history":[{"count":8,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/posts\/454\/revisions"}],"predecessor-version":[{"id":467,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=\/wp\/v2\/posts\/454\/revisions\/467"}],"wp:attachment":[{"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cauchyschwarz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}