{"id":440450,"date":"2024-02-12T12:15:23","date_gmt":"2024-02-12T11:15:23","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=dotnet&#038;p=440450"},"modified":"2024-04-16T06:14:12","modified_gmt":"2024-04-16T05:14:12","slug":"monitoring-tool-in-rider-2024-1-eap-4","status":"publish","type":"dotnet","link":"https:\/\/blog.jetbrains.com\/zh-hans\/dotnet\/2024\/02\/12\/monitoring-tool-in-rider-2024-1-eap-4","title":{"rendered":"Monitoring Tool in Rider 2024.1 EAP 4"},"content":{"rendered":"\n<p><span style=\"font-weight: 400;\">With <a href=\"https:\/\/www.jetbrains.com\/rider\/download\/\" data-type=\"link\" data-id=\"https:\/\/www.jetbrains.com\/rider\/download\/\" target=\"_blank\" rel=\"noreferrer noopener\">the latest release<\/a>, Rider gets an integrated monitoring tool that provides real-time tracking of your .NET application&#8217;s  behavior as it runs.<\/span><\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\"><span style=\"font-weight: 400;\">The<\/span><i><span style=\"font-weight: 400;\"> Monitoring<\/span><\/i><span style=\"font-weight: 400;\"> tool window<\/span><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">The new <\/span><i><span style=\"font-weight: 400;\">Monitoring<\/span><\/i><span style=\"font-weight: 400;\"> tool window is displayed each time you run or debug your .NET project in Rider.<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1999\" height=\"995\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/02\/image1-3.png\" alt=\"\" class=\"wp-image-442069\"\/><\/figure>\n\n\n\n<p>Major operating systems are supported (Windows, macOS, Linux). Check our web help for a <a href=\"https:\/\/www.jetbrains.com\/help\/rider\/Program-Monitoring.html#supported-oss-and-frameworks\" target=\"_blank\" rel=\"noopener\">list of supported frameworks and runtimes<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span style=\"font-weight: 400;\">Profiling made easy<\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/02\/image2.png\"><img decoding=\"async\" loading=\"lazy\" width=\"1134\" height=\"1007\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/02\/image2.png\" alt=\"Chart tab with profiling controls\" class=\"wp-image-440574\" style=\"aspect-ratio:1.1261171797418073;width:600px\"\/><\/a><\/figure>\n\n\n\n<p><span style=\"font-weight: 400;\">Profiling your .NET project just got much easier. With just a single click in the <\/span><i><span style=\"font-weight: 400;\">Monitoring<\/span><\/i><span style=\"font-weight: 400;\"> tool window, you can:<\/span><\/p>\n\n\n\n<ul>\n<li><b>Get stack trace data<\/b><span style=\"font-weight: 400;\">. The stack trace will be automatically opened in the <\/span><i><span style=\"font-weight: 400;\">Stack Trace Explorer<\/span><\/i><span style=\"font-weight: 400;\">. This might be helpful, for example, when you encounter unexpected UI freezes and want to investigate potential thread locks.<\/span><\/li>\n\n\n\n<li><b>Get a memory snapshot<\/b><span style=\"font-weight: 400;\">. Have you noticed a spike in memory usage or frequent garbage collection events? You no longer need to start a memory profiling session to address the problem \u2013 just click a button to get a snapshot. Once the snapshot is collected, it&#8217;ll be opened in the <\/span><i><span style=\"font-weight: 400;\">dotMemory Profiler<\/span><\/i><span style=\"font-weight: 400;\">.<\/span><\/li>\n\n\n\n<li><b style=\"font-size: revert;\">Start performance profiling<\/b><span style=\"font-weight: 400;\">. The same applies to performance profiling \u2013 you can start collecting sampling or timeline profiling data and open it in the <\/span><i style=\"font-size: revert;\">dotTrace Profiler<\/i><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span style=\"font-weight: 400;\">CPU and memory charts<\/span><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">The <\/span><i><span style=\"font-weight: 400;\">Chart<\/span><\/i><span style=\"font-weight: 400;\"> tab displays real-time data:<\/span><\/p>\n\n\n\n<ul>\n<li><span style=\"font-weight: 400;\">The <\/span><i><span style=\"font-weight: 400;\">CPU <\/span><\/i><span style=\"font-weight: 400;\">chart not only shows CPU usage but also places application exceptions on the same timeline.<\/span><\/li>\n\n\n\n<li>The <i style=\"font-size: revert;\">Memory <\/i><span style=\"font-weight: 400;\">chart shows heap sizes as well as garbage collection events.<\/span><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span style=\"font-weight: 400;\">Counters and metrics<\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/02\/image5.png\"><img decoding=\"async\" loading=\"lazy\" width=\"1117\" height=\"722\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/02\/image5.png\" alt=\"Counters and metrics\" class=\"wp-image-440607\" style=\"width:600px\"\/><\/a><\/figure>\n\n\n\n<p><span style=\"font-weight: 400;\">The <\/span><i><span style=\"font-weight: 400;\">Counters<\/span><\/i><span style=\"font-weight: 400;\"> tab feeds you live data from various counter and metric providers. In <\/span><i><span style=\"font-weight: 400;\">Settings | Build, Execution, Deployment | Monitoring<\/span><\/i><span style=\"font-weight: 400;\">, you can customize the providers list. If your libraries provide their own metrics, you can include those too.<\/span><span style=\"font-weight: 400;\"><br><\/span><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/02\/image3.png\"><img decoding=\"async\" loading=\"lazy\" width=\"1416\" height=\"1364\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/02\/image3.png\" alt=\"Counter settings\" class=\"wp-image-440585\" style=\"width:700px\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span style=\"font-weight: 400;\">Environment data<\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/02\/envvars.png\"><img decoding=\"async\" loading=\"lazy\" width=\"1384\" height=\"831\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/02\/envvars.png\" alt=\"Environment\" class=\"wp-image-440653\" style=\"width:700px\"\/><\/a><\/figure>\n\n\n\n<p><span style=\"font-weight: 400;\">The <\/span><i><span style=\"font-weight: 400;\">Environment<\/span><\/i> <span style=\"font-weight: 400;\">tab lays out everything from operating system details to environmental variable values.<\/span><span style=\"font-weight: 400;\"><br><\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span style=\"font-weight: 400;\">Turn monitoring on and off<\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/02\/image4.png\"><img decoding=\"async\" loading=\"lazy\" width=\"1028\" height=\"270\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/02\/image4.png\" alt=\"Turn Monitoring on and off\" class=\"wp-image-440596\" style=\"width:700px\"\/><\/a><\/figure>\n\n\n\n<p><span style=\"font-weight: 400;\">Choose whether you want to monitor all runs, just debug sessions, or disable monitorin entirely. Everything is controllable from the <\/span><i><span style=\"font-weight: 400;\">Monitoring<\/span><\/i><span style=\"font-weight: 400;\"> tool window. Re-enabling monitoring is just a click away via <\/span><i><span style=\"font-weight: 400;\">Settings<\/span><\/i><span style=\"font-weight: 400;\">.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span style=\"font-weight: 400;\">Your feedback<\/span><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">The <\/span><i><span style=\"font-weight: 400;\">Monitoring<\/span><\/i><span style=\"font-weight: 400;\"> tool window has been introduced as a direct response to a common request from our community, and it&#8217;s something we&#8217;ve eagerly anticipated ourselves. We&#8217;re keen to hear your feedback on what&#8217;s missing or what could be improved<\/span> in the comments below! <\/p>\n\n\n<div class=\"content__banner\">\n        <div class=\"content__banner-text\">\n                    <p>To try the Monitoring tool in action, download the latest update to the IDE \u2013 Rider 2024.1.<\/p>\n                            <a href=\"https:\/\/www.jetbrains.com\/rider\/download\/\" class=\"content__banner-btn\" target=\"_blank\" rel=\"noopener\">Download Rider 2024.1 <i class=\"icon-arrow-up\"><\/i><\/a>\n            <\/div>\n<\/div>\n\n\n\n\n\n\n<p><\/p>\n","protected":false},"author":213,"featured_media":443460,"comment_status":"closed","ping_status":"closed","template":"","categories":[4992,4786,4788,808,1401,4140],"tags":[667,1123,1978],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/dotnet\/440450"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/dotnet"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/types\/dotnet"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/users\/213"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=440450"}],"version-history":[{"count":9,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/dotnet\/440450\/revisions"}],"predecessor-version":[{"id":465982,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/dotnet\/440450\/revisions\/465982"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media\/443460"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=440450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=440450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=440450"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=440450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}