{"id":614,"date":"2016-08-10T14:00:23","date_gmt":"2016-08-10T06:00:23","guid":{"rendered":"http:\/\/www.datarelab.com\/blog\/?p=614"},"modified":"2016-08-10T14:00:23","modified_gmt":"2016-08-10T06:00:23","slug":"c%e5%86%85%e5%ad%98%e6%b3%84%e9%9c%b2%e5%92%8c%e6%a3%80%e6%b5%8b","status":"publish","type":"post","link":"https:\/\/www.datarelab.com\/blog\/Technical_literature\/614.html","title":{"rendered":"C++\u5185\u5b58\u6cc4\u9732\u548c\u68c0\u6d4b"},"content":{"rendered":"<p>C++\u4e2d\u7684\u5185\u5b58\u6cc4\u9732\u4e00\u822c\u6307\u5806\u4e2d\u7684\u5185\u5b58\u6cc4\u9732\u3002\u5806\u5185\u5b58\u662f\u6211\u4eec\u624b\u52a8malloc\/realloc\/new\u7533\u8bf7\u7684\uff0c\u7a0b\u5e8f\u4e0d\u4f1a\u81ea\u52a8\u56de\u6536\uff0c\u9700\u8981\u8c03\u7528free\u6216delete\u624b\u52a8\u91ca\u653e\uff0c\u5426\u5219\u5c31\u4f1a\u9020\u6210\u5185\u5b58\u6cc4\u9732\u3002\u5185\u5b58\u6cc4\u9732\u5176\u5b9e\u8fd8\u5e94\u8be5\u5305\u62ec\u7cfb\u7edf\u8d44\u6599\u7684\u6cc4\u9732\uff0c\u6bd4\u5982socket\u8fde\u63a5\u7b49\uff0c\u4f7f\u7528\u5b8c\u540e\u4e5f\u8981\u91ca\u653e\u3002<\/p>\n<p><strong>\u5185\u5b58\u6cc4\u9732\u7684\u539f\u56e0\uff1a<\/strong><\/p>\n<p>\u603b\u7ed3\u4e0b\u6765\uff0c\u5185\u5b58\u6cc4\u9732\u5927\u6982\u6709\u4e00\u4e0b\u51e0\u4e2a\u539f\u56e0\uff1a<\/p>\n<p>1\u3001\u7f16\u7801\u9519\u8bef\uff1amalloc\u3001realloc\u3001new\u7533\u8bf7\u7684\u5185\u5b58\u5728\u5806\u4e0a\uff0c\u9700\u8981\u624b\u52a8\u663e\u793a\u91ca\u653e\uff0c\u8c03\u7528free\u6216delete\u3002\u7533\u8bf7\u548c\u91ca\u653e\u5fc5\u987b\u6210\u5bf9\u51fa\u73b0malloc\/realloc\u5bf9\u5e94free\uff0cnew\u5bf9\u5e94delete\u3002\u524d\u8005\u4e0d\u4f1a\u8fd0\u884c\u6784\u9020\/\u6790\u6784\u51fd\u6570\uff0c\u540e\u8005\u4f1a\u3002\u5bf9\u4e8eC++\u5185\u7f6e\u6570\u636e\u7c7b\u578b\u53ef\u80fd\u6ca1\u5dee\u522b\uff0c\u4f46\u662f\u5bf9\u4e8e\u81ea\u5df1\u6784\u9020\u7684\u7c7b\uff0c\u53ef\u80fd\u5728\u6790\u6784\u51fd\u6570\u4e2d\u91ca\u653e\u7cfb\u7edf\u8d44\u6e90\u6216\u91ca\u653e\u5185\u5b58\uff0c\u6240\u4ee5\u8981\u5bf9\u5e94\u4f7f\u7528\u3002<\/p>\n<p>2\u3001\u201c\u65e0\u4e3b\u201d\u5185\u5b58\uff1a\u7533\u8bf7\u5185\u5b58\u540e\uff0c\u6307\u9488\u6307\u5411\u5185\u5b58\u7684\u8d77\u59cb\u5730\u5740\uff0c\u82e5\u4e22\u5931\u6216\u4fee\u6539\u8fd9\u4e2a\u6307\u9488\uff0c\u90a3\u4e48\u7533\u8bf7\u7684\u5185\u5b58\u5c06\u4e22\u5931\u4e14\u6ca1\u6709\u91ca\u653e\u3002<\/p>\n<p>3\u3001\u5f02\u5e38\u5206\u652f\u5bfc\u81f4\u8d44\u6e90\u672a\u91ca\u653e\uff1a\u7a0b\u5e8f\u6b63\u5e38\u6267\u884c\u6ca1\u6709\u95ee\u9898\uff0c\u4f46\u662f\u5982\u679c\u9047\u5230\u5f02\u5e38\uff0c\u6b63\u5e38\u6267\u884c\u7684\u987a\u5e8f\u6216\u5206\u652f\u4f1a\u88ab\u6253\u65ad\uff0c\u5f97\u4e0d\u5230\u6267\u884c\u3002\u6240\u4ee5\u5728\u5f02\u5e38\u5904\u7406\u7684\u4ee3\u7801\u4e2d\uff0c\u8981\u786e\u4fdd\u7cfb\u7edf\u8d44\u6e90\u7684\u91ca\u653e\u3002<\/p>\n<p>4\u3001\u9690\u5f0f\u5185\u5b58\u6cc4\u9732\uff1a\u7a0b\u5e8f\u8fd0\u884c\u4e2d\u4e0d\u65ad\u7533\u8bf7\u5185\u5b58\uff0c\u4f46\u662f\u76f4\u5230\u7a0b\u5e8f\u7ed3\u675f\u624d\u91ca\u653e\u3002\u6709\u4e9b\u670d\u52a1\u5668\u4f1a\u7533\u8bf7\u5927\u91cf\u5185\u5b58\u4f5c\u4e3a\u7f13\u5b58\uff0c\u6216\u7533\u8bf7\u5927\u91cfSocket\u8d44\u6e90\u4f5c\u4e3a\u8fde\u63a5\u6c60\uff0c\u8fd9\u4e9b\u8d44\u6e90\u4e00\u76f4\u5360\u7528\u76f4\u5230\u7a0b\u5e8f\u9000\u51fa\u3002\u670d\u52a1\u5668\u8fd0\u884c\u8d77\u6765\u4e00\u822c\u6301\u7eed\u51e0\u4e2a\u6708\uff0c\u4e0d\u53ca\u65f6\u91ca\u653e\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5185\u5b58\u8017\u5c3d\u3002<\/p>\n<p>5\u3001\u7c7b\u7684\u6790\u6784\u51fd\u6570\u4e3a\u975e\u865a\u51fd\u6570\uff1a\u6790\u6784\u51fd\u6570\u4e3a\u865a\u51fd\u6570\uff0c\u5229\u7528\u591a\u6001\u6765\u8c03\u7528\u6307\u9488\u6307\u5411\u5bf9\u8c61\u7684\u6790\u6784\u51fd\u6570\uff0c\u800c\u4e0d\u662f\u57fa\u7c7b\u7684\u6790\u6784\u51fd\u6570\u3002<\/p>\n<p><strong>\u5185\u5b58\u6cc4\u9732\u7684\u68c0\u6d4b<\/strong><\/p>\n<p>\u5185\u5b58\u6cc4\u9732\u7684\u5173\u952e\u5c31\u662f\u8bb0\u5f55\u5206\u914d\u7684\u5185\u5b58\u548c\u91ca\u653e\u5185\u5b58\u7684\u64cd\u4f5c\uff0c\u770b\u770b\u80fd\u4e0d\u80fd\u5339\u914d\u3002\u8ddf\u8e2a\u6bcf\u4e00\u5757\u5185\u5b58\u7684\u58f0\u660e\u5468\u671f\uff0c\u4f8b\u5982\uff1a\u6bcf\u5f53\u7533\u8bf7\u4e00\u5757\u5185\u5b58\u540e\uff0c\u628a\u6307\u5411\u5b83\u7684\u6307\u9488\u52a0\u5165\u5230List\u4e2d\uff0c\u5f53\u91ca\u653e\u65f6\uff0c\u518d\u628a\u5bf9\u5e94\u7684\u6307\u9488\u4eceList\u4e2d\u5220\u9664\uff0c\u5230\u7a0b\u5e8f\u6700\u540e\u68c0\u67e5List\u5c31\u53ef\u4ee5\u77e5\u9053\u6709\u6ca1\u6709\u5185\u5b58\u6cc4\u9732\u4e86\u3002Window\u5e73\u53f0\u4e0b\u7684Visual Studio\u8c03\u8bd5\u5668\u548cC\u8fd0\u884c\u65f6\uff08CRT\uff09\u5c31\u662f\u7528\u8fd9\u4e2a\u539f\u7406\u6765\u68c0\u6d4b\u5185\u5b58\u6cc4\u9732\u3002<\/p>\n<p>\u5728VS\u4e2d\u4f7f\u7528\u65f6\uff0c\u9700\u52a0\u4e0a<\/p>\n<p>#define _CRTDBG_MAP_ALLOC<\/p>\n<p>#include &lt;crtdbg.h&gt;<\/p>\n<p>crtdbg.h\u7684\u4f5c\u7528\u662f\u5c06malloc\u548cfree\u51fd\u6570\u6620\u5c04\u5230\u5b83\u4eec\u7684\u8c03\u8bd5\u7248\u672c_malloc_dbg\u548c_free_dbg\uff0c\u8fd9\u4e24\u4e2a\u51fd\u6570\u5c06\u8ddf\u8e2a\u5185\u5b58\u5206\u914d\u548c\u91ca\u653e\uff08\u5728Debug\u7248\u672c\u4e2d\u6709\u6548\uff09<\/p>\n<p>_CrtDumpMemoryLeaks();<\/p>\n<p>\u51fd\u6570\u5c06\u663e\u793a\u5f53\u524d\u5185\u5b58\u6cc4\u9732\uff0c\u4e5f\u5c31\u662f\u8bf4\u7a0b\u5e8f\u8fd0\u884c\u5230\u6b64\u884c\u4ee3\u7801\u65f6\u7684\u5185\u5b58\u6cc4\u9732\uff0c\u6240\u6709\u672a\u9500\u6bc1\u7684\u5bf9\u8c61\u90fd\u4f1a\u62a5\u51fa\u5185\u5b58\u6cc4\u9732\uff0c\u56e0\u6b64\u8981\u8ba9\u8fd9\u4e2a\u51fd\u6570\u5c3d\u91cf\u653e\u5230\u6700\u540e\u3002<\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre class=\"lang:c++ decode:true \">#define _CRTDBG_MAP_ALLOC\r\n#include &lt;crtdbg.h&gt;\r\n#include &lt;iostream&gt;\r\nusing namespace std;\r\nint main(int argc,char** argv)\r\n{\r\n    char *str1 = NULL;\r\n    char *str2 = NULL;\r\n    str1=new char[100];\r\n    str2=new char[50];\r\n\r\n    delete str1;\r\n    _CrtDumpMemoryLeaks();\r\n    return 0;\r\n}<\/pre>\n<p>\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u5185\u5b58\u7533\u8bf7\u4e86\u4e24\u5757\uff0c\u4f46\u662f\u53ea\u91ca\u653e\u4e86\u4e00\u5757\uff0c\u8fd0\u884c\u8c03\u8bd5\uff0c\u4f1a\u5728output\u7a97\u53e3\u8f93\u51fa\uff1a<\/p>\n<p>Dumping objects -&gt;<br \/>\n{136} normal block at 0x00084D70, 50 bytes long.<br \/>\nData: &lt; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0&gt; CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD<br \/>\nObject dump complete.<\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u4f1a\u68c0\u6d4b\u5230\u5185\u5b58\u6cc4\u9732\u3002 \u4f46\u662f\u5e76\u6ca1\u6709\u68c0\u6d4b\u5230\u6cc4\u9732\u5185\u5b58\u7533\u8bf7\u7684\u4f4d\u7f6e\uff0c\u5df2\u7ecf\u52a0\u4e86\u5b8f\u5b9a\u4e49#define _CRTDBG_MAP_ALLOC\u3002\u539f\u56e0\u662f\u7533\u8bf7\u5185\u5b58\u7528\u7684\u662fnew\uff0c\u800c\u521a\u521a\u5305\u542b\u5934\u6587\u4ef6\u548c\u52a0\u5b8f\u5b9a\u4e49\u662f\u91cd\u8f7d\u4e86malloc\u51fd\u6570\uff0c\u5e76\u6ca1\u6709\u91cd\u8f7dnew\u64cd\u4f5c\u7b26\uff0c\u6240\u4ee5\u8981\u81ea\u5df1\u5b9a\u4e49\u91cd\u8f7dnew\u64cd\u4f5c\u7b26\u624d\u80fd\u68c0\u6d4b\u5230\u6cc4\u9732\u5185\u5b58\u7684\u7533\u8bf7\u4f4d\u7f6e\u3002\u4fee\u6539\u5982\u4e0b\uff1a<\/p>\n<pre class=\"lang:c++ decode:true \">#define _CRTDBG_MAP_ALLOC\r\n#include &lt;crtdbg.h&gt;\r\n#ifdef _DEBUG \/\/\u91cd\u8f7dnew\r\n#define new  new(_NORMAL_BLOCK, __FILE__, __LINE__)\r\n#endif\r\n#include &lt;iostream&gt;\r\nusing namespace std;\r\nint main(int argc,char** argv)\r\n{\r\n    char *str1 = NULL;\r\n    char *str2 = NULL;\r\n    str1=(char*)malloc(100);\r\n    str2=new char[50];\r\n\r\n    _CrtDumpMemoryLeaks();\r\n    return 0;\r\n}<\/pre>\n<p>\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n<p>Detected memory leaks!<br \/>\nDumping objects -&gt;<br \/>\ne:\\c++\\test\\\u5185\u5b58\u6cc4\u9732\u68c0\u6d4b2\\main.cpp(13) : {62} normal block at 0x001714F8, 50 bytes long.<br \/>\nData: &lt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &gt; CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD<br \/>\ne:\\c++\\test\\\u5185\u5b58\u6cc4\u9732\u68c0\u6d4b2\\main.cpp(12) : {61} normal block at 0x00171458, 100 bytes long.<br \/>\nData: &lt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &gt; CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD<br \/>\nObject dump complete.<\/p>\n<p>\u53ef\u4ee5\u770b\u5230<\/p>\n<p>main.cpp()\u62ec\u53f7\u91cc\u9762\u7684\u6570\u5b57\u5c31\u662f\u6cc4\u9732\u5185\u5b58\u7684\u8d77\u59cb\u4f4d\u7f6e\u3002\u90a3\u4e48\u540e\u9762\u7684{62} normal block at 0x001714F8, 50 bytes long.<br \/>\n\u4ee3\u8868\u4ec0\u4e48\uff1f<\/p>\n<p>\u5927\u62ec\u53f7{}\u91cc\u9762\u7684\u6570\u5b57\u8868\u793a\u7b2c\u51e0\u6b21\u7533\u8bf7\u5185\u5b58\u64cd\u4f5c\uff1b0x001714F8\u8868\u793a\u6cc4\u9732\u5185\u5b58\u7684\u8d77\u59cb\u5730\u5740\uff0cCD CD\u8868\u793a\u6cc4\u9732\u5185\u5b58\u7684\u5185\u5bb9\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u662f\u7b2c62\u6b21\u7533\u8bf7\u5185\u5b58\uff0c\u56e0\u4e3a\u5728\u521d\u59cb\u5316\u64cd\u4f5c\u65f6\u4e5f\u7533\u8bf7\u4e86\u5185\u5b58\u3002\u901a\u8fc7\u8fd9\u4e2a\u4fe1\u606f\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u65ad\u70b9\u3002\u8c03\u7528long _CrtSetBreakAlloc(long nAllocID)\u53ef\u4ee5\u518d\u7b2cnAllocID\u6b21\u7533\u8bf7\u5185\u5b58\u662f\u4e2d\u65ad\uff0c\u5728\u4e2d\u65ad\u65f6\u83b7\u53d6\u7684\u4fe1\u606f\u6bd4\u5728\u7a0b\u5e8f\u7ec8\u6b62\u65f6\u83b7\u53d6\u7684\u4fe1\u606f\u8981\u591a\uff0c\u4f60\u53ef\u4ee5\u8c03\u8bd5\uff0c\u67e5\u770b\u53d8\u91cf\u72b6\u6001\uff0c\u5bf9\u51fd\u6570\u8c03\u7528\u8c03\u8bd5\u5206\u6790\uff0c\u89e3\u51b3\u5185\u5b58\u6cc4\u9732\u3002<\/p>\n<p>block\u5206\u4e3a3\u4e2d\u7c7b\u578b\uff0c\u6b64\u5904\u4e3anormal\uff0c\u8868\u793a\u666e\u901a\uff0c\u6b64\u5916\u8fd8\u6709client\u8868\u793a\u5ba2\u6237\u7aef\uff08\u4e13\u95e8\u7528\u4e8eMFC\uff09\uff0cCRT\u8868\u793a\u8fd0\u884c\u65f6\uff08\u6709CRT\u5e93\u6765\u7ba1\u7406\uff0c\u4e00\u822c\u4e0d\u4f1a\u6cc4\u9732\uff09\uff0cfree\u8868\u793a\u5df2\u7ecf\u91ca\u653e\u6389\u7684\u5757\uff0cigore\u8868\u793a\u8981\u5ffd\u7565\u7684\u5757\u3002<\/p>\n<p>\u5728\u4e0a\u9762\u7a0b\u5e8f\u4e2d\uff0c\u8c03\u7528_CrtDumpMemoryLeaks()\u6765\u68c0\u6d4b\u5185\u5b58\u6cc4\u9732\uff0c\u5982\u679c\u7a0b\u5e8f\u53ef\u80fd\u5728\u591a\u4e2a\u5730\u65b9\u7ec8\u6b62\uff0c\u5fc5\u987b\u5728\u591a\u4e2a\u5730\u65b9\u8c03\u7528\u8fd9\u4e2a\u51fd\u6570\uff0c\u8fd9\u6837\u6bd4\u8f83\u9ebb\u70e6\uff0c\u53ef\u4ee5\u5728\u7a0b\u5e8f\u8d77\u59cb\u4f4d\u7f6e\u8c03\u7528_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF )\uff0c\u8fd9\u6837\u65e0\u8bba\u7a0b\u5e8f\u4f55\u65f6\u7ec8\u6b62\uff0c\u90fd\u4f1a\u5728\u7ec8\u6b62\u524d\u8c03\u7528_CrtDumpMemoryLeaks()\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u9664\u6b64\u4e4b\u5916\uff0c\u8fd8\u53ef\u4ee5\u5728\u67d0\u65f6\u523b\u8bbe\u7f6e\u68c0\u67e5\u70b9\uff0c\u83b7\u53d6\u5f53\u65f6\u5185\u5b58\u72b6\u6001\u7684\u5feb\u7167\u3002\u6bd4\u8f83\u4e0d\u540c\u65f6\u523b\u5185\u5b58\u72b6\u6001\u7684\u5dee\u5f02\u3002<\/p>\n<pre class=\"lang:clojure decode:true \">#define _CRTDBG_MAP_ALLOC  \r\n#include &lt;crtdbg.h&gt;  \r\n#ifdef _DEBUG \/\/\u91cd\u8f7dnew  \r\n#define new  new(_NORMAL_BLOCK, __FILE__, __LINE__)    \r\n#endif  \r\n#include &lt;iostream&gt;  \r\nusing namespace std;  \r\nint main(int argc,char** argv)  \r\n{  \r\n    _CrtMemState s1, s2, s3;  \r\n    char *str1 = NULL;  \r\n    char *str2 = NULL;  \r\n    str1=(char*)malloc(100);  \r\n    _CrtMemCheckpoint( &amp;s1 );\/\/\u8bb0\u5f55\u5185\u5b58\u5feb\u7167  \r\n    _CrtMemDumpStatistics( &amp;s1 );\/\/\u8f93\u51fa  \r\n    str2=new char[50];  \r\n    _CrtMemCheckpoint( &amp;s2 );  \r\n    _CrtMemDumpStatistics( &amp;s2 );  \r\n  \r\n    if ( _CrtMemDifference( &amp;s3, &amp;s1, &amp;s2) )\/\/\u6bd4\u8f83s1\u548cs2\uff0c\u628a\u6bd4\u8f83\u7ed3\u679c\u8f93\u51fa\u5230s3  \r\n        _CrtMemDumpStatistics( &amp;s3 );\/\/ dump \u5dee\u5f02\u7ed3\u679c  \r\n  \r\n    return 0;  \r\n}<\/pre>\n<p>\u8f93\u51fa\u7ed3\u679c\u4e3a\uff1a<\/p>\n<p>0 bytes in 0 Free Blocks.<br \/>\n100 bytes in 1 Normal Blocks.<br \/>\n8434 bytes in 54 CRT Blocks.<br \/>\n0 bytes in 0 Ignore Blocks.<br \/>\n0 bytes in 0 Client Blocks.<br \/>\nLargest number used: 8963 bytes.<br \/>\nTotal allocations: 14003 bytes.<br \/>\n0 bytes in 0 Free Blocks.<br \/>\n150 bytes in 2 Normal Blocks.<br \/>\n8434 bytes in 54 CRT Blocks.<br \/>\n0 bytes in 0 Ignore Blocks.<br \/>\n0 bytes in 0 Client Blocks.<br \/>\nLargest number used: 8963 bytes.<br \/>\nTotal allocations: 14053 bytes.<br \/>\n0 bytes in 0 Free Blocks.<br \/>\n50 bytes in 1 Normal Blocks.<br \/>\n0 bytes in 0 CRT Blocks.<br \/>\n0 bytes in 0 Ignore Blocks.<br \/>\n0 bytes in 0 Client Blocks.<br \/>\nLargest number used: 0 bytes.<br \/>\nTotal allocations: 50 bytes.<\/p>\n<p>\u4e5f\u53ef\u4ee5\u7528\u6b64\u6cd5\u66f4\u590d\u6742\u68c0\u6d4b\u5185\u5b58\u6cc4\u9732\uff0c\u4f8b\u5982\u8bbe\u7f6e\u68c0\u67e5\u70b9\uff0c\u68c0\u67e5\u68c0\u67e5\u70b9\u4e4b\u95f4\u7684\u5185\u5b58\u6cc4\u9732\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C++\u4e2d\u7684\u5185\u5b58\u6cc4\u9732\u4e00\u822c\u6307\u5806\u4e2d\u7684\u5185\u5b58\u6cc4\u9732\u3002\u5806\u5185\u5b58\u662f\u6211\u4eec\u624b\u52a8malloc\/realloc\/new\u7533\u8bf7\u7684\uff0c\u7a0b\u5e8f\u4e0d\u4f1a\u81ea [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-614","post","type-post","status-publish","format-standard","hentry","category-Technical_literature"],"views":2587,"_links":{"self":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/614","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/comments?post=614"}],"version-history":[{"count":0,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/posts\/614\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/media?parent=614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/categories?post=614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.datarelab.com\/blog\/wp-json\/wp\/v2\/tags?post=614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}