{"id":150423,"date":"2020-09-02T19:20:37","date_gmt":"2020-09-02T11:20:37","guid":{"rendered":"http:\/\/4563.org\/?p=150423"},"modified":"2020-09-02T19:20:37","modified_gmt":"2020-09-02T11:20:37","slug":"macos-%e6%88%96%e8%80%85-linux-%e4%b8%8b%e6%9c%89%e6%b2%a1%e6%9c%89%e4%bb%80%e4%b9%88%e5%b7%a5%e5%85%b7%e8%83%bd%e5%a4%9f%e5%ae%9e%e7%8e%b0-visual-studio-%e9%87%8c%e9%9d%a2%e7%9a%84%e6%80%a7","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=150423","title":{"rendered":"macOS \u6216\u8005 Linux \u4e0b\u6709\u6ca1\u6709\u4ec0\u4e48\u5de5\u5177\u80fd\u591f\u5b9e\u73b0 Visual Studio \u91cc\u9762\u7684\u201c\u6027\u80fd\u63a2\u67e5\u5668\u201d\u8fd9\u4e2a\u529f\u80fd\uff1f\u611f\u89c9\u8fd9\u4e2a\u5206\u6790\u4ee3\u7801\u6027\u80fd\u5f88\u65b9\u4fbf"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  macOS \u6216\u8005 Linux \u4e0b\u6709\u6ca1\u6709\u4ec0\u4e48\u5de5\u5177\u80fd\u591f\u5b9e\u73b0 Visual Studio \u91cc\u9762\u7684\u201c\u6027\u80fd\u63a2\u67e5\u5668\u201d\u8fd9\u4e2a\u529f\u80fd\uff1f\u611f\u89c9\u8fd9\u4e2a\u5206\u6790\u4ee3\u7801\u6027\u80fd\u5f88\u65b9\u4fbf               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : movq <\/span>  <span><i><\/i> 10<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u8fd9\u4e48\u7f3a\u94dc\u5e01\u3002\u3002\uff1f\u81ea\u4ece\u4e0a\u6b21\u4f60\u8bf4\u4f60\u5e2e\u522b\u4eba\u7684 repo \u5237 star\uff0c\u4e00\u76f4\u90fd\u80fd\u770b\u5230\u4f60\u53d1\u5e16\u3002 \u8fd9\u4e48\u7f3a\u94dc\u5e01\uff1f      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>8<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3081088\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : masker <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @masker \u6211\u53d1\u5e16\u5c31\u662f\u7f3a\u94dc\u5e01\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3081089\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : movq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @masker \u5df2 block\uff0c\u522b\u56de\u590d\u4e86\u3002\u968f\u968f\u4fbf\u4fbf\u6076\u610f\u63e3\u6d4b\u3001judge \u522b\u4eba\uff0c\u4ec0\u4e48\u4e1c\u897f\u3002\u771f\u662f\u6d3b\u5728\u81ea\u5df1\u7684\u4e16\u754c\u91cc\u3002\u5927\u5bb6\u770b\u4e0b\u8fd9\u4e2a\u4eba\u7684\u56de\u590d\u5427\uff0c\u7d20\u8d28\u53ef\u89c1\u4e00\u6591\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3081090\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : movq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Linux \u4e0b: perf<br \/>macos: Instruments                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3081091\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nightwitch <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @movq \u6211\u5bfb\u601d\uff0c\u6211\u7684\u56de\u590d\u4e5f\u6ca1\u6709\u76f4\u63a5\u653b\u51fb\u4ed6\u4eba\u5427\uff1f \u73b0\u5728\u7684\u5c0f\u5e74\u8f7b\u600e\u4e48\u5c31\u8fd9\u4e48\u559c\u6b22\u770b\u522b\u4eba\u7684\u56de\u590d\u5224\u65ad\u522b\u4eba\u7684\u7d20\u8d28\u597d\u574f\u5462\uff1f\u54e6\u5bf9\u4e86\uff0c\u5f53\u4ee3\u7ea2\u536b\u5175\u3002 \u5efa\u8bae\u597d\u597d\u8bfb\u4e00\u4e0b\u4f60\u53d1\u7ed9\u6211\u7684\u56de\u590d\u5462                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3081092\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : masker <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u7ffb\u4e86\u4e0b\u4e3b\u7684\u5386\u53f2\u53d1\u8a00\uff0c\u7206\u7c97\u4e0d\u5c11\u554a\uff0c\u4e0d\u50cf\u662f\u5f88\u7406\u667a\u7684\u4eba\u3002<br \/>\u4f60\u4e5f\u53ef\u4ee5 block \u6211\u7136\u540e\u53d1\u4e00\u53e5\u5df2 block \u561b\uff0c\u6211\u4e0d\u89c9\u5f97\u8fd9\u5bf9\u6211\u6765\u8bf4\u4f1a\u662f\u4e00\u4ef6\u5f88\u9057\u61be\u7684\u4e8b<br \/>\u4e0d\u8fc7\u4e3b\u7684\u53d1\u8a00\u5f88\u50cf Bilibili \u7684\u67d0\u4e9b\u9752\u5e74\u670b\u53cb\u5462\uff08\u4e0d\u662f\u8d34\u6807\u7b7e\uff0c\u4f46\u662f\u793e\u533a\u662f\u6709\u5178\u578b\u57fa\u56e0\u7684\uff09                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3081093\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : learningman <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @learningman \u4e0d\u597d\u610f\u601d\uff0c\u4f60\u8bf4\u9519\u4e86\uff0c\u672c\u4eba\u4e0d\u901b bilibili \u3002\u800c\u4e14\u4f60\u8bf4\u6211\u7206\u7c97\u4e0d\u5c11\uff0c\u4f46\u662f\u5e76\u975e\u5982\u6b64\u3002\u6211\u5728 v \u7ad9\u53ea\u7206\u7c97\u8fc7\u4e24\u4e2a\u4eba\uff0c\u4e00\u4e2a\u662f\u672c\u5e16\u91cc\u9762\u7684\u90a3\u4e2a\u968f\u4fbf\u6076\u610f\u63e3\u6d4b\u522b\u4eba\u7684\u4eba\uff0c\u53e6\u5916\u4e00\u4e2a\u4eba\u662f\u90a3\u4e2a intel \u5e16\u5b50\u91cc\u9762\u90a3\u4e2a\u4e71\u653e\u5634\u70ae\u7684\u5e7f\u544a\u8bb2\u5ea7\u4ee3\u7406\u5546\uff0c\u53ea\u4e0d\u8fc7\u6211\u9a82\u90a3\u4e2a\u4eba\u6bd4\u8f83\u591a\u7f62\u4e86\u3002\u5982\u679c\u628a\u6211\u5bf9\u8fd9\u4e24\u4e2a\u4eba\u7684\u56de\u590d\u7b97\u5230\u6211\u6240\u6709\u7684\u53d1\u8a00\uff0c\u5360\u6bd4\u5e94\u8be5\u975e\u5e38\u5c0f\u3002\u6b64\u5916\uff0c\u6211\u7206\u7c97\u7684\u4eba\u662f\u6709\u7279\u5b9a\u5bf9\u8c61\u7684\uff0c\u6bd4\u5982\u8fd9\u79cd\u6076\u610f\u63e3\u6d4b\u7684\u4eba\uff0c\u6216\u8005\u90a3\u4e2a intel \u5e16\u5b50\u91cc\u9762\u6545\u610f\u62d0\u5f2f\u62b9\u89d2\u5f15\u5bfc\u6d17\u767d\u7684\u5e7f\u544a\u5546\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3081094\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : movq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @learningman \u6240\u4ee5\uff0c\u4f60\u8bf4\u7684\u611f\u89c9\u6211\u5e76\u4e0d\u662f\u4e00\u4e2a\u7406\u667a\u7684\u4eba\uff0c\u6211\u5b8c\u5168\u53cd\u5bf9\u8fd9\u79cd\u8bf4\u6cd5\u3002\u81f3\u4e8e\u4f60\u600e\u4e48\u8ba4\u4e3a\uff0c\u53ef\u4ee5\u968f\u610f\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3081095\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : movq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             VS \u7528\u7684\u5c11\uff0c\u4f60\u8bf4\u7684\u5177\u4f53\u662f\u54ea\u4e2a\u529f\u80fd<br \/>Mac \u5bf9\u5e94\u7684\u5e94\u8be5\u662f Instruments \uff08\u5176\u5b9e\u4f60\u7528 Xcode \u8dd1\u5c31\u6709\u7684 &#8230;\uff09\uff0c\u5e94\u8be5\u662f\u57fa\u4e8e DTrace \u7684\uff0cSun \u7684\u9057\u4ea7\u4e4b\u4e00\u3002<br \/>\u8de8\u5e73\u53f0\u7684 VTune\uff0c\u4e0d\u8fc7\u7528 Electron \u505a\u4e86\u4e4b\u540e\u5c31\u6709\u70b9\u86cb\u75bc\u3002\u5bf9\u5e94 AMD \u662f uProf\uff0c\u4e0d\u8fc7\u6ca1\u7528\u8fc7\u3002\u547d\u4ee4\u884c perf \u5c31\u4e0d\u9519\u3002<br \/>\u4e13\u95e8\u7684\u5e94\u7528\u53ef\u80fd\u6709\u4e13\u95e8\u7684\u5de5\u5177\u3002\u6700\u8fd1\u6d41\u884c\u91c7\u4e86\u6570\u636e\u4e4b\u540e\u653e\u5728 Chrome\/Firefox \u7684 Developer Tools \u754c\u9762\u91cc\u9762\u770b\u3002Firefox \u751a\u81f3\u6709\u5b98\u65b9\u7684\u6587\u6863\u6559\u4f60\u5e72\u8fd9\u4e2a\u3002<br \/>Linux \u6700\u8fd1\u5728\u641e BPF\uff0c\u5f88\u795e\u5947\u7684\u4e00\u4e2a\u4e1c\u897f\uff0c\u76f4\u63a5\u5728 kernel \u91cc\u9762\u653e\u4e86\u4e00\u4e2a JIT \u7f16\u8bd1\u5668\u3002\u60f3\u5230 HN \u4e0a\u9762\u770b\u7684\u4e00\u53e5\u8bdd\uff1a<\/p>\n<p>Ah Linux, in which a thread is a process, a semantic patch is a lint rule, and a packet filter is a system profiler.                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>macOS \u6216\u8005 Linux \u4e0b\u6709&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/150423"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=150423"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/150423\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=150423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=150423"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=150423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}