perf(diag): complete trustworthy Slice A capture tooling
Correct whole-frame GPU timestamps so they bracket only the accepted render transaction and associate delayed query results with the owning CPU frame. Add route-wide frame-history summaries, fixed-camera screenshot comparison, process counters, contention traces, a pinned Arwic workload, and credential-safe launch disclosure. The reference hardware/display contract now keeps local and RDP populations separate and defines the screenshot and re-baseline rules needed by later prepared-content gates. Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
parent
bf7ec12f68
commit
3ee8ec537a
23 changed files with 1639 additions and 170 deletions
|
|
@ -20,18 +20,25 @@ public class FrameProfilerReportTests
|
|||
};
|
||||
var buffer = new StringWriter(CultureInfo.InvariantCulture);
|
||||
|
||||
FrameProfiler.WriteHistoryCsv(records, buffer);
|
||||
FrameProfiler.WriteHistoryCsv(
|
||||
records,
|
||||
buffer,
|
||||
new DateTime(2026, 7, 24, 10, 0, 0, DateTimeKind.Utc));
|
||||
|
||||
string[] lines = buffer.ToString().Split(
|
||||
Environment.NewLine, StringSplitOptions.RemoveEmptyEntries);
|
||||
Assert.Equal(3, lines.Length);
|
||||
Assert.Equal(
|
||||
"frame,timestamp_ms,cpu_us,gpu_us,alloc_bytes,update_us,upload_us,imgui_us,pacing_us",
|
||||
"frame,timestamp_ms,timestamp_utc,cpu_us,gpu_us,alloc_bytes,update_us,upload_us,imgui_us,pacing_us",
|
||||
lines[0]);
|
||||
Assert.Equal("0,12.500,1000,500,2048,100,200,30,40", lines[1]);
|
||||
Assert.Equal(
|
||||
"0,12.500,2026-07-24T10:00:00.0125000Z,1000,500,2048,100,200,30,40",
|
||||
lines[1]);
|
||||
// gpu_us=-1 marks "no GPU sample available"; alloc_bytes can go
|
||||
// negative (documented alloc-channel behavior, matches FrameStatsBuffer.Max).
|
||||
Assert.Equal("1,18.750,1200,-1,-256,110,210,31,41", lines[2]);
|
||||
Assert.Equal(
|
||||
"1,18.750,2026-07-24T10:00:00.0187500Z,1200,-1,-256,110,210,31,41",
|
||||
lines[2]);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue