replay: the over-copies' causes among the executed counters
The report counted over-copies and their bytes, and those over imported blocks, but not why the runtime keeps each texture in an image of its own. The runtime already splits them by cause in Metrics (over_copies_host_memory, _pitch and the ten like them, each with its bytes). The backend now reports all twelve pairs, so a frame's, a completed group's and the total's over-copies split by cause. This is what the planner asked for to split the 48,710 small over-copies across the link. Validation only; the runtime is unchanged. The replay stage test now also checks that two of the keys are there.
This commit is contained in:
1 parent
9027bd2aa3
commit
62c563f564
3 files changed
+50
-1
No files matched your search
@@ -2917,6 +2917,51 @@ impl Backend for NewRuntime {
|
||||
("over_copy_bytes", metrics.over_copy_bytes),
|
||||
("over_copies_imported", metrics.over_copies_imported),
|
||||
("over_copy_bytes_imported", metrics.over_copy_bytes_imported),
|
||||
("over_copies_host_memory", metrics.over_copies_host_memory),
|
||||
(
|
||||
"over_copy_bytes_host_memory",
|
||||
metrics.over_copy_bytes_host_memory,
|
||||
),
|
||||
("over_copies_dma_buf", metrics.over_copies_dma_buf),
|
||||
("over_copy_bytes_dma_buf", metrics.over_copy_bytes_dma_buf),
|
||||
("over_copies_dma_bufs", metrics.over_copies_dma_bufs),
|
||||
("over_copy_bytes_dma_bufs", metrics.over_copy_bytes_dma_bufs),
|
||||
("over_copies_dedicated", metrics.over_copies_dedicated),
|
||||
(
|
||||
"over_copy_bytes_dedicated",
|
||||
metrics.over_copy_bytes_dedicated,
|
||||
),
|
||||
("over_copies_surface", metrics.over_copies_surface),
|
||||
("over_copy_bytes_surface", metrics.over_copy_bytes_surface),
|
||||
("over_copies_spilled", metrics.over_copies_spilled),
|
||||
("over_copy_bytes_spilled", metrics.over_copy_bytes_spilled),
|
||||
("over_copies_linear", metrics.over_copies_linear),
|
||||
("over_copy_bytes_linear", metrics.over_copy_bytes_linear),
|
||||
(
|
||||
"over_copies_linear_features",
|
||||
metrics.over_copies_linear_features,
|
||||
),
|
||||
(
|
||||
"over_copy_bytes_linear_features",
|
||||
metrics.over_copy_bytes_linear_features,
|
||||
),
|
||||
("over_copies_pitch", metrics.over_copies_pitch),
|
||||
("over_copy_bytes_pitch", metrics.over_copy_bytes_pitch),
|
||||
("over_copies_render_reach", metrics.over_copies_render_reach),
|
||||
(
|
||||
"over_copy_bytes_render_reach",
|
||||
metrics.over_copy_bytes_render_reach,
|
||||
),
|
||||
("over_copies_alignment", metrics.over_copies_alignment),
|
||||
(
|
||||
"over_copy_bytes_alignment",
|
||||
metrics.over_copy_bytes_alignment,
|
||||
),
|
||||
("over_copies_image_memory", metrics.over_copies_image_memory),
|
||||
(
|
||||
"over_copy_bytes_image_memory",
|
||||
metrics.over_copy_bytes_image_memory,
|
||||
),
|
||||
("attachment_read_copies", metrics.attachment_read_copies),
|
||||
(
|
||||
"attachment_read_copy_bytes",
|
||||
|
||||
@@ -488,6 +488,8 @@ fn a_play_reports_the_runtime_s_command_buffer_stages() {
|
||||
"gpu_end_to_handler_tail",
|
||||
"calibrations",
|
||||
"calibration_nanos",
|
||||
"over_copies_pitch",
|
||||
"over_copy_bytes_image_memory",
|
||||
];
|
||||
for key in sums {
|
||||
assert!(executed.contains_key(key), "{key}: {executed:?}");
|
||||
|
||||
@@ -574,7 +574,9 @@ records as text, and
|
||||
A texture over an imported buffer is the runtime's counted copy. Each frame's `over_copies` and
|
||||
`over_copy_bytes` count every copy of a texture over a buffer, and its `over_copies_imported` and
|
||||
`over_copy_bytes_imported` those over an imported one alone; the rest are over the runtime's own
|
||||
blocks, where the device's linear image does not take the texture. The report's `no-copy
|
||||
blocks, where the device's linear image does not take the texture. `over_copies_host_memory`,
|
||||
`over_copies_pitch` and the ten like them, each beside its `over_copy_bytes_` sum, split them by
|
||||
the runtime's cause (`Metrics::over_copies_host_memory` and the rest). The report's `no-copy
|
||||
buffers` line counts the descriptor-form ones in a block, those outside every block and their
|
||||
bytes, and the bytes-form ones and their bytes imported, apart; its `textures over buffers` line
|
||||
counts the textures over buffers it made (not substituted), in place and in an image of their
|
||||
|
||||
Reference in new issue
Block a user