{"id":42948,"date":"2022-07-27T09:04:40","date_gmt":"2022-07-27T08:04:40","guid":{"rendered":"https:\/\/arquiconsult.com\/?p=42948"},"modified":"2024-10-23T13:45:39","modified_gmt":"2024-10-23T12:45:39","slug":"in-client-performance-profiler","status":"publish","type":"post","link":"https:\/\/arquiconsult.com\/es\/in-client-performance-profiler\/","title":{"rendered":"#025 IN-CLIENT PERFORMANCE PROFILER"},"content":{"rendered":"<div class=\"services_vertical horizontal_services row\" style=\"background-color: #f7f7f7; padding: 25px; border-radius: 5px; text-align: justify;\">\n<p>With the release of Business Central 2021 Wave 2 (BC19), Microsoft added the AL Performance Profiler (<a href=\"https:\/\/arquiconsult.com\/es\/dynamics-365-business-central-2-2\/\">check ArquiTips #8<\/a>). This feature was mainly for developers to use and has empowered them to investigate performance of their code.<\/p>\n<p>Now, with the release of Business Central 2022 Wave 1 (BC20), Microsoft took a step further. The In-Client Performance Profiler works &#8211; as the name suggests &#8211; from the client side, and any user with permission can analyze performance issues in Business Central.<\/p>\n<p>In-Client Performance Profiler is a new app page reachable directly from the Help &amp; Support page or simply by searching for <strong>Performance Profiler<\/strong> in the search bar.<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>How does it work?<\/strong><\/p>\n<p>Search for performance profiler, and then choose the related link.<\/p>\n<p><img loading=\"lazy\" class=\"size-medium wp-image-42950 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/Search-for-performance-profiler-and-then-choose-the-related-link.-640x154.png\" alt=\"Search for performance profiler, and then choose the related link.\" width=\"640\" height=\"154\" srcset=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/Search-for-performance-profiler-and-then-choose-the-related-link.-640x154.png 640w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/Search-for-performance-profiler-and-then-choose-the-related-link.-768x185.png 768w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/Search-for-performance-profiler-and-then-choose-the-related-link.-1536x370.png 1536w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/Search-for-performance-profiler-and-then-choose-the-related-link..png 1912w\" sizes=\"(max-width: 640px) 100vw, 640px\" title=\"-\"><\/p>\n<p>The most convenient way of using the profiler is to open it on a different browser window. Once you have it opened, you can start recording.<\/p>\n<p><img loading=\"lazy\" class=\"size-medium wp-image-42954 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/The-most-convenient-way-of-using-the-profiler-640x196.png\" alt=\"The most convenient way of using the profiler\" width=\"640\" height=\"196\" srcset=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/The-most-convenient-way-of-using-the-profiler-640x196.png 640w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/The-most-convenient-way-of-using-the-profiler-768x235.png 768w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/The-most-convenient-way-of-using-the-profiler.png 1458w\" sizes=\"(max-width: 640px) 100vw, 640px\" title=\"-\"><\/p>\n<p><img loading=\"lazy\" class=\"size-medium wp-image-42957 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/2The-most-convenient-way-of-using-the-profiler-640x330.png\" alt=\"2The most convenient way of using the profiler\" width=\"640\" height=\"330\" srcset=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/2The-most-convenient-way-of-using-the-profiler-640x330.png 640w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/2The-most-convenient-way-of-using-the-profiler-768x396.png 768w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/2The-most-convenient-way-of-using-the-profiler-1536x793.png 1536w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/2The-most-convenient-way-of-using-the-profiler.png 1911w\" sizes=\"(max-width: 640px) 100vw, 640px\" title=\"-\"><\/p>\n<p>For testing purposes, we created an extension for the Customer List, and added some code on the OnOpenPage trigger.<\/p>\n<p><img loading=\"lazy\" class=\"size-full wp-image-42962 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/For-testing-purposes.png\" alt=\"For testing purposes\" width=\"564\" height=\"213\" title=\"-\"><\/p>\n<p>After this, we started the performance profiler, and then we opened the Customer List Page. Once it opened and showed the \u201cTimes Up\u201d message, we stopped the performance profiler and got the results as we can see in the next image.<\/p>\n<p><img loading=\"lazy\" class=\"size-medium wp-image-42963 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/After-this-we-started-the-performance-profiler-519x480.png\" alt=\"After this, we started the performance profiler\" width=\"519\" height=\"480\" srcset=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/After-this-we-started-the-performance-profiler-519x480.png 519w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/After-this-we-started-the-performance-profiler-768x710.png 768w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/After-this-we-started-the-performance-profiler.png 864w\" sizes=\"(max-width: 519px) 100vw, 519px\" title=\"-\"><\/p>\n<p>In here we can see the active apps that we have. The bar shows us the duration of the activity.<\/p>\n<p>If we check the \u201cShow technical information\u201d we can see the time spent on each app.<\/p>\n<p><img loading=\"lazy\" class=\"size-medium wp-image-42966 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/If-we-check-the-Show-technical-information-614x480.png\" alt=\"If we check the \u201cShow technical information\u201d\" width=\"614\" height=\"480\" srcset=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/If-we-check-the-Show-technical-information-614x480.png 614w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/If-we-check-the-Show-technical-information-768x600.png 768w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/If-we-check-the-Show-technical-information.png 972w\" sizes=\"(max-width: 614px) 100vw, 614px\" title=\"-\"><\/p>\n<p>In this case we only have one app installed. We can even see the name of the method that is taking more time than it was supposed to under the separator <strong>Call Tree<\/strong>.<\/p>\n<p><img loading=\"lazy\" class=\"size-medium wp-image-42969 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/In-this-case-we-only-have-one-app-installed.-596x480.png\" alt=\"In this case we only have one app installed.\" width=\"596\" height=\"480\" srcset=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/In-this-case-we-only-have-one-app-installed.-596x480.png 596w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/In-this-case-we-only-have-one-app-installed.-768x618.png 768w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/In-this-case-we-only-have-one-app-installed..png 953w\" sizes=\"(max-width: 596px) 100vw, 596px\" title=\"-\"><\/p>\n<p>It is also possible to download the profile file from this page, and open it in Visual Studio Code, or even share it to a folder in OneDrive.<\/p>\n<p><img loading=\"lazy\" class=\"size-medium wp-image-42972 aligncenter\" src=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/It-is-also-possible-to-download-the-profile-file-from-this-page-640x274.png\" alt=\"It is also possible to download the profile file from this page\" width=\"640\" height=\"274\" srcset=\"https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/It-is-also-possible-to-download-the-profile-file-from-this-page-640x274.png 640w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/It-is-also-possible-to-download-the-profile-file-from-this-page-768x329.png 768w, https:\/\/arquiconsult.com\/wp-content\/uploads\/2022\/07\/It-is-also-possible-to-download-the-profile-file-from-this-page.png 1082w\" sizes=\"(max-width: 640px) 100vw, 640px\" title=\"-\"><\/p>\n<p>&nbsp;<\/p>\n<!--themify_builder_content-->\n<div id=\"themify_builder_content-42948\" data-postid=\"42948\" class=\"themify_builder_content themify_builder_content-42948 themify_builder tf_clear\">\n    \t<!-- module_row -->\n\t<div  data-lazy=\"1\" class=\"module_row themify_builder_row tb_nus1581 tb_first tf_clearfix\">\n\t    \t\t<div class=\"row_inner col_align_top col-count-1 tf_box tf_w tf_rel\">\n\t\t\t<div  data-lazy=\"1\" class=\"module_column tb-column col-full first tb_cai8581 tf_box\">\n\t\t\t    \t        <div class=\"tb-column-inner tf_box tf_w\">\n\t\t    <!-- module text -->\n<div  class=\"module module-text tb_9tkr581 arquitps-data  \" data-lazy=\"1\">\n        <div  class=\"tb_text_wrap\">\n    <p><script>\njQuery(\".tbp_post_month:contains(Janeiro)\").html(\"January\");\n\njQuery(\".tbp_post_month:contains(Fevereiro)\").html(\"February\");\n\n\njQuery(\".tbp_post_month:contains(Mar\u00e7o)\").html(\"March\");\n\n\njQuery(\".tbp_post_month:contains(Abril)\").html(\"April\");\n\n\njQuery(\".tbp_post_month:contains(Maio)\").html(\"May\");\n\n\njQuery(\".tbp_post_month:contains(Junho)\").html(\"June\");\n\n\njQuery(\".tbp_post_month:contains(Julho)\").html(\"July\");\n\njQuery(\".tbp_post_month:contains(Agosto)\").html(\"August\");\n\njQuery(\".tbp_post_month:contains(Setembro)\").html(\"September\");\n\njQuery(\".tbp_post_month:contains(Outubro)\").html(\"October\");\n\njQuery(\".tbp_post_month:contains(Novembro)\").html(\"November\");\n\njQuery(\".tbp_post_month:contains(Dezembro)\").html(\"December\");\t\n\n\n\n<\/script><\/p>    <\/div>\n<\/div>\n<!-- \/module text -->\t        <\/div>\n\t    \t<\/div>\n\t\t    <\/div>\n\t    <!-- \/row_inner -->\n\t<\/div>\n\t<!-- \/module_row -->\n\t\t<!-- module_row -->\n\t<div  data-anchor=\"sucesso\" data-hide-anchor=\"1\" data-lazy=\"1\" class=\"module_row themify_builder_row sucesso repeat tb_has_section tb_section-sucesso tb_erdd665 tf_clearfix\" >\n\t    \t\t<div class=\"row_inner col_align_top col-count-1 tf_box tf_w tf_rel\">\n\t\t\t<div  data-lazy=\"1\" class=\"module_column tb-column col-full first tb_ej8s665 tf_box\">\n\t\t\t    \t        <div class=\"tb-column-inner tf_box tf_w\">\n\t\t    <!-- module buttons -->\n<div  class=\"module module-buttons tb_zjgb665 buttons-horizontal transparent popmake-24705 large circle tf_textc\" data-lazy=\"1\">\n    \t<div class=\"module-buttons-item tf_inline_b\">\n\t\t\t\t\t\t\t<a href=\"#\" class=\"ui builder_button tb_default_color\" >\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"tf_inline_b tf_vmiddle\">Give as a Feedback and Suggest Questions<\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t    \t<\/div>\n\t<\/div>\n<!-- \/module buttons -->\n\t        <\/div>\n\t    \t<\/div>\n\t\t    <\/div>\n\t    <!-- \/row_inner -->\n\t<\/div>\n\t<!-- \/module_row -->\n\t<\/div>\n<!--\/themify_builder_content-->\n","protected":false},"excerpt":{"rendered":"<p>With the release of Business Central 2021 Wave 2 (BC19), Microsoft added the AL Performance Profiler (check ArquiTips #8). This feature was mainly for developers to use and has empowered them to investigate performance of their code. Now, with the release of Business Central 2022 Wave 1 (BC20), Microsoft took a step further. The In-Client [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":42982,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2065,2125],"tags":[2088,2174,2175],"acf":[],"_links":{"self":[{"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/posts\/42948"}],"collection":[{"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/comments?post=42948"}],"version-history":[{"count":0,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/posts\/42948\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/media\/42982"}],"wp:attachment":[{"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/media?parent=42948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/categories?post=42948"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arquiconsult.com\/es\/wp-json\/wp\/v2\/tags?post=42948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}