{"id":28906,"date":"2020-05-11T15:41:31","date_gmt":"2020-05-11T19:41:31","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=28906"},"modified":"2020-05-11T15:41:31","modified_gmt":"2020-05-11T19:41:31","slug":"swiftdt-swift-debug-tool","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2020\/05\/11\/swiftdt-swift-debug-tool\/","title":{"rendered":"swiftdt (Swift Debug Tool)"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/apple\/swift\/pull\/31468\">Mike Ash<\/a> (via <a href=\"https:\/\/twitter.com\/jckarter\/status\/1258842881852190720\">Joe Groff<\/a>):<\/p>\n<blockquote cite=\"https:\/\/github.com\/apple\/swift\/pull\/31468\"><p>This is a tool which can inspect a Swift process and dump information about the Swift runtime in that process.<\/p>\n<p>It currently supports inspecting two kinds of information:<\/p>\n<ol>\n<li>It can dump the protocol conformance cache.<\/li>\n<li>It can dump all metadata allocations, and print the name and size of the metadata allocated by the generic metadata cache.<\/li>\n<\/ol>\n<p>It&rsquo;s meant to grow more functionality over time.<\/p>\n<p>The design of the tool places all of the runtime-related smarts in Remote Mirror. <code>swiftdt<\/code> is then a small that connects the Remote Mirror functionality with remote process inspection.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Mike Ash (via Joe Groff): This is a tool which can inspect a Swift process and dump information about the Swift runtime in that process. It currently supports inspecting two kinds of information: It can dump the protocol conformance cache. It can dump all metadata allocations, and print the name and size of the metadata [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2020-05-11T19:41:34Z","apple_news_api_id":"7d2d2f92-0820-4b36-a41a-70a9bba44656","apple_news_api_modified_at":"2020-05-11T19:41:34Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AfS0vkgggSzakGnCpu6RGVg","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[56,31,1667,30,1666,74,71,901,943],"class_list":["post-28906","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-debugging","tag-ios","tag-ios-13","tag-mac","tag-macos-10-15","tag-opensource","tag-programming","tag-swift-programming-language","tag-swift-runtime"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/28906","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=28906"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/28906\/revisions"}],"predecessor-version":[{"id":28907,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/28906\/revisions\/28907"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=28906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=28906"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=28906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}