{"id":5875,"date":"2022-08-08T15:58:46","date_gmt":"2022-08-08T22:58:46","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/pix\/?p=5875"},"modified":"2022-08-11T09:59:36","modified_gmt":"2022-08-11T16:59:36","slug":"using-performance-budgets-in-the-timing-capture-metrics-view","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/pix\/using-performance-budgets-in-the-timing-capture-metrics-view\/","title":{"rendered":"Using performance budgets in the Timing Capture metrics view"},"content":{"rendered":"<p>The <a href=\"https:\/\/devblogs.microsoft.com\/pix\/download\/\">2208.10 release of PX on Windows<\/a> adds the ability to specify performance budgets in the <a href=\"https:\/\/devblogs.microsoft.com\/pix\/timing-captures-new\/\">Timing Capture<\/a> metrics view.<\/p>\n<div>\n<div class=\"halcyon-chm\">\n<p>Performance budgets make it easy to quickly find points in the graph that are over their budget. Performance budgets can be specified for any metric. Budgets are often assigned for a variety of scenarios, including frame time, the amount of time a particular subsystem is allowed to run per-frame, or to help track memory usage.<\/p>\n<p>The set of budgets for a metric are specified using the <strong>Budgets<\/strong> tab on the <strong>Metric Details Panel<\/strong>. Budgets are drawn as horizontal lines in the graph. The following example shows a budget for a PIX event named <em>OctagonFloor<\/em>. The points above the line are those that have exceeded the performance budget.<a href=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-event-budget.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-5876\" src=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-event-budget.png\" alt=\"Image pix metrics view event budget\" width=\"1062\" height=\"650\" srcset=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-event-budget.png 1062w, https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-event-budget-300x184.png 300w, https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-event-budget-1024x627.png 1024w, https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-event-budget-768x470.png 768w\" sizes=\"(max-width: 1062px) 100vw, 1062px\" \/><\/a><\/p>\n<div>\n<div>To create a new budget, click on the <strong>+<\/strong> button on the <strong>Budgets<\/strong> tab of the <strong>Metric Details Panel<\/strong>. \u00a0A set of controls are provided to name the budget group and the individual budgets, customize line colors, enter the value for each budget, and specify whether or not markers should be drawn in the graph for points that are above or below the budget. \u00a0The units for the budget match the units for the type of Metric for which the budget is defined.<\/div>\n<div><a href=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-create-budget.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-5880\" src=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-create-budget.png\" alt=\"Image pix metrics view create budget\" width=\"587\" height=\"226\" srcset=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-create-budget.png 587w, https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-create-budget-300x116.png 300w\" sizes=\"(max-width: 587px) 100vw, 587px\" \/><\/a><\/div>\n<div>\n<div>The drawing of the budget lines can be toggled using the graph control next to the name of the metric in the <strong>Active Metrics Panel<\/strong>.<\/div>\n<div><a href=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-toggle-budgets.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-5881\" src=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-toggle-budgets.png\" alt=\"Image pix metrics view toggle budgets\" width=\"553\" height=\"156\" srcset=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-toggle-budgets.png 553w, https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-toggle-budgets-300x85.png 300w\" sizes=\"(max-width: 553px) 100vw, 553px\" \/><\/a><\/div>\n<div>\n<div>If the value of the <strong>Markers<\/strong> dropdown for a budget is either <em>Above<\/em> or <em>Below<\/em>, annotations are added to the graph that highlight the points that fall above or below the budget line. \u00a0The <strong>Stats<\/strong> tab of the <strong>Metric Details<\/strong> panel provides a list of the values and timestamps for all points outside of the budget. \u00a0The timestamps in the table are hyperlinks. \u00a0Clicking a hyperlink navigates to a section of the <a href=\"https:\/\/devblogs.microsoft.com\/pix\/timing-captures-new\/\">Timeline view<\/a> that contains that point.<\/div>\n<div><\/div>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-budget-stats.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-5883\" src=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-budget-stats.png\" alt=\"Image pix metrics view budget stats\" width=\"475\" height=\"301\" srcset=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-budget-stats.png 475w, https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2022\/08\/pix-metrics-view-budget-stats-300x190.png 300w\" sizes=\"(max-width: 475px) 100vw, 475px\" \/><\/a><\/p>\n<div><\/div>\n<\/div>\n<\/div>\n<div>As always, please submit bug reports or feature requests using the PIX feedback button in the upper right corner of the PIX UI.<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<div>Thanks,<\/div>\n<div>Steven.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The 2208.10 release of PX on Windows adds the ability to specify performance budgets in the Timing Capture metrics view. Performance budgets make it easy to quickly find points in the graph that are over their budget. Performance budgets can be specified for any metric. Budgets are often assigned for a variety of scenarios, including [&hellip;]<\/p>\n","protected":false},"author":1915,"featured_media":5876,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5875","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pix"],"acf":[],"blog_post_summary":"<p>The 2208.10 release of PX on Windows adds the ability to specify performance budgets in the Timing Capture metrics view. Performance budgets make it easy to quickly find points in the graph that are over their budget. Performance budgets can be specified for any metric. Budgets are often assigned for a variety of scenarios, including [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/pix\/wp-json\/wp\/v2\/posts\/5875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/pix\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/pix\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/pix\/wp-json\/wp\/v2\/users\/1915"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/pix\/wp-json\/wp\/v2\/comments?post=5875"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/pix\/wp-json\/wp\/v2\/posts\/5875\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/pix\/wp-json\/wp\/v2\/media\/5876"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/pix\/wp-json\/wp\/v2\/media?parent=5875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/pix\/wp-json\/wp\/v2\/categories?post=5875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/pix\/wp-json\/wp\/v2\/tags?post=5875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}