{"id":6303,"date":"2023-11-01T14:52:23","date_gmt":"2023-11-01T21:52:23","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/pix\/?p=6303"},"modified":"2023-11-01T16:20:47","modified_gmt":"2023-11-01T23:20:47","slug":"timing-capture-statistical-comparison-features","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/pix\/timing-capture-statistical-comparison-features\/","title":{"rendered":"Timing Capture Statistical Comparison Features"},"content":{"rendered":"<p>Starting with the <a href=\"https:\/\/devblogs.microsoft.com\/pix\/pix-2310-30\/\">2310.30 version of PIX on Windows<\/a>, <span style=\"font-size: 1rem; text-align: var(--bs-body-text-align);\">the <a href=\"https:\/\/devblogs.microsoft.com\/pix\/timing-captures-new\/\">Timing Capture Metrics view<\/a> can produce a statistical comparision of the average duration for the points that represent PIX event hierarchies in two selected ranges of time. \u00a0Statistical comparisions help determine which portions of the event hierarchies had statistically different durations for the set of points being compared.<\/span><\/p>\n<div>\n<div>For example, the following graph of a metric named <strong>Game::Render<\/strong> shows several ranges of time where the event durations are relatively consistent, but there are also ranges of time in which the event&#8217;s duration is significantly longer than the average. \u00a0A statistical comparison of the event durations in the two highlighted time ranges can be used to determine which portions of the <strong>Game::Render<\/strong> event hierarchy account for the differences in duration.<\/div>\n<\/div>\n<div><\/div>\n<div>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/pix-timing-capture-compare-time-ranges.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-6304\" src=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/pix-timing-capture-compare-time-ranges.png\" alt=\"Image pix timing capture compare time ranges\" width=\"890\" height=\"594\" srcset=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/pix-timing-capture-compare-time-ranges.png 890w, https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/pix-timing-capture-compare-time-ranges-300x200.png 300w, https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/pix-timing-capture-compare-time-ranges-768x513.png 768w\" sizes=\"(max-width: 890px) 100vw, 890px\" \/><\/a><\/p>\n<div>\n<div>\n<div>To determine the statistical differences between two time ranges, select the first range of time, right click in that range for the event that you&#8217;d like to compare, then select <strong>Add graphed PIX CPU events in selected range to statistical analysis<\/strong>. \u00a0Repeat the process for the second range of time.<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div><a href=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/stats_compare_context_menu.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-6307\" src=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/stats_compare_context_menu.png\" alt=\"Image stats compare context menu\" width=\"625\" height=\"488\" srcset=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/stats_compare_context_menu.png 625w, https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/stats_compare_context_menu-300x234.png 300w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/a><\/div>\n<div><\/div>\n<div>\n<div>\n<div>After two ranges of time have been added, the <strong>Statistical Comparision<\/strong> window appears. \u00a0The two ranges of time can be from different captures. \u00a0This allows you to compare data from a capture taken on one device with the data taken on a different device, for example. \u00a0Note that each selected range of time must have at least two points for the event being compared. \u00a0It&#8217;s recommended that you select ranges that have enough points to provide a good sample representation of your game&#8217;s behavior. The amount of data may vary depending on how noisy your source data is, but a good rule of thumb is to look for ranges with 50-100 data points. A warning indicator will be shown if the number of data points is below 20.<\/div>\n<div><\/div>\n<\/div>\n<div><a href=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/pix-timing-capture-comparison_dialog.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-6309\" src=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/pix-timing-capture-comparison_dialog.png\" alt=\"Image pix timing capture comparison dialog\" width=\"898\" height=\"542\" srcset=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/pix-timing-capture-comparison_dialog.png 898w, https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/pix-timing-capture-comparison_dialog-300x181.png 300w, https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/pix-timing-capture-comparison_dialog-768x464.png 768w\" sizes=\"(max-width: 898px) 100vw, 898px\" \/><\/a><\/div>\n<\/div>\n<div><\/div>\n<div>\n<div>\n<div>The <strong>Baseline<\/strong> column in the table displays the average duration for the set of points in the first range of time. \u00a0The <strong>Experiment<\/strong> column displays the average duration for the set of points in the second range of time. The <strong>Delta<\/strong> and <strong>Delta %<\/strong> columns show the differences in duration between the baseline and experiment groups.<\/div>\n<div><\/div>\n<div>The <strong>P-value<\/strong> column identifies whether the differences between the baseline and experiment groups are statistically significant or whether the differences are due to other factors such as noise, random sampling, or sampling bias. \u00a0The lower the P-value, the more statistically significant the differences are. \u00a0Those rows with the lowest P-values, are the rows you&#8217;ll likely want to investigate further, by drilling further into the event hierarchy. \u00a0Rows that are statistically significant are colored in either red or green depending on whether the delta between the baseline and experiment groups is negative or positive. \u00a0The boldness of the red and green colors is relatlive to how close to 0 the P-value is. \u00a0Up and down arrows are also displayed in the P-value column to aid with accessibility. \u00a0Sorting by P-value is a convenient way to bring the most statistically signifcant points to the top of the table.<\/div>\n<div><\/div>\n<div>The histogram at the bottom of the <strong>Statistical Comparison<\/strong> window shows the distribution of the durations for the baseline and experiment groups for the selected row in the table. \u00a0There is generally a correlation between the P-value for a given row and it&#8217;s histogram. \u00a0The histograms for the baseline and experiment group are largely overlapping for rows with high P-values, and vice versa.<\/div>\n<div><\/div>\n<div>The number of points in the baseline and experiment groups also influences how to interpret the results. \u00a0The <strong>N<\/strong> columns in the table display the number of points for each group. \u00a0A yellow warning triangle is drawn in those cells with low sample counts. \u00a0Results may be biased in these cases.<\/div>\n<div><\/div>\n<div>Statistical analysis is integrated into the performance budgets feature in the Metrics view. \u00a0After establishing a budget and selecting a range of time, use the calculator icon to create a statistical comparison of the points above and the points below the budget.<\/div>\n<\/div>\n<div><\/div>\n<\/div>\n<div>\n<div>\n<div>\n<div><a href=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/pix-timing-capture-comparison_budget.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-6311\" src=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/pix-timing-capture-comparison_budget.png\" alt=\"Image pix timing capture comparison budget\" width=\"1091\" height=\"598\" srcset=\"https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/pix-timing-capture-comparison_budget.png 1091w, https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/pix-timing-capture-comparison_budget-300x164.png 300w, https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/pix-timing-capture-comparison_budget-1024x561.png 1024w, https:\/\/devblogs.microsoft.com\/pix\/wp-content\/uploads\/sites\/41\/2023\/11\/pix-timing-capture-comparison_budget-768x421.png 768w\" sizes=\"(max-width: 1091px) 100vw, 1091px\" \/><\/a><\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<div>Thanks for reading!<\/div>\n<\/div>\n<div>Steven.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Starting with the 2310.30 version of PIX on Windows, the Timing Capture Metrics view can produce a statistical comparision of the average duration for the points that represent PIX event hierarchies in two selected ranges of time. \u00a0Statistical comparisions help determine which portions of the event hierarchies had statistically different durations for the set of [&hellip;]<\/p>\n","protected":false},"author":1915,"featured_media":6309,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6303","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pix"],"acf":[],"blog_post_summary":"<p>Starting with the 2310.30 version of PIX on Windows, the Timing Capture Metrics view can produce a statistical comparision of the average duration for the points that represent PIX event hierarchies in two selected ranges of time. \u00a0Statistical comparisions help determine which portions of the event hierarchies had statistically different durations for the set of [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/pix\/wp-json\/wp\/v2\/posts\/6303","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=6303"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/pix\/wp-json\/wp\/v2\/posts\/6303\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/pix\/wp-json\/wp\/v2\/media\/6309"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/pix\/wp-json\/wp\/v2\/media?parent=6303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/pix\/wp-json\/wp\/v2\/categories?post=6303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/pix\/wp-json\/wp\/v2\/tags?post=6303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}