Rise
The Vieneo Province
Loading...
Searching...
No Matches
Frame Profiler11 tests

Checks flight profiling, capture context, capture triggers and queue behavior with a slow writer.

Subsystem: Diagnostics, profiling, packaging and runtime integrity
Fixture/harness: frameprofiler11tests
Setup: The standalone FrameProfiler11Tests harness creates a D3D11 hardware or WARP device and an isolated output directory. Its FrameProfiler11Tests.rc resource supplies known version 7.8.9.10 for runtime version discovery. FlightTests submits CPU-only frames with changing vehicle/view and positive, negative, zero, missing or invalid VSI estimates, and recreates the profiler to verify capture continuity. The main manual-trigger path exercises delayed GPU queries and ring reuse; QueueTests uses a bounded SPSC queue and consumer thread.

Build/entry point: Tests/FrameProfiler11Tests.vcxproj; declared configurations: Debug|Win32, Release|Win32, Debug|x64, Release|x64.

FrameProfiler11Tests.cpp

Source: Tests/FrameProfiler11Tests.cpp

Flight Tests

Fixture: Frame Profiler11 tests
Case symbol: FlightTests
Source: Tests/FrameProfiler11Tests.cpp:30

Test
Checks automatic startup capture, UTF-8 chat markers, exact frame/marker draining and reset continuity; per-sample vehicle, view, interval-derived FPS and signed vertical motion including high-speed descent, unknown startup/invalid data and zero intervals; executable version, process architecture and GPU device epochs. Verifies metadata and buffer bounds before shutdown, and final writer state after normal reset. With –profile-flight –abrupt-exit, terminates only its disposable harness process after the initial checkpoint for external JSON survival verification.
Source check messages (including original failure wording)

  • flight capture needs no trigger
  • flight flag captures first frame
  • metadata is available before any shutdown or device reset
  • initial checkpoint contains executable identity
  • status documents capture buffer bounds
  • flight capture resumes on device reset
  • flight capture CSV exists
  • flight context columns in CSV header
  • quoted marker has complete CSV row
  • frame rows have no chat
  • frames retain their device epoch across recovery
  • view mode changes and missing scene is unknown
  • vehicle changes stay with their samples
  • FPS comes from actual frame interval
  • zero interval does not invent FPS
  • positive VSI is ascending
  • high speed descent is retained without atmospheric cutoff
  • zero vertical speed is level
  • missing or invalid flight motion cannot reuse earlier samples
  • chat markers do not claim sampled flight context
  • chat timestamp order
  • marker altitude at submission
  • marker is not a timed scope
  • UTF-8, commas and quotes round trip
  • line breaks remain one CSV record
  • markers survive reset without duplicates
  • startup frames and queued notes drained exactly once
  • version read from running executable resource
  • capture identifies process architecture
  • status retains earlier GPU identities after recovery
  • status contains rendering adapter description
  • metadata preserves terminal capture status
  • normal reset marks writer shutdown complete

Queue Tests

Fixture: Frame Profiler11 tests
Case symbol: QueueTests
Source: Tests/FrameProfiler11Tests.cpp:112

Test
Queue Tests: slow writer rejects work without waiting; slow writer retains its snapshot while producer fills queue; concurrent publication keeps payloads ordered and intact.
Source check messages (including original failure wording)

  • slow writer rejects work without waiting
  • slow writer retains its snapshot while producer fills queue
  • FIFO after wrap
  • wrapped publication
  • queue drained
  • concurrent publication keeps payloads ordered and intact

Entry-point checks

Fixture: Frame Profiler11 tests
Case symbol: main
Source: Tests/FrameProfiler11Tests.cpp:131

Test
Checks disabled and manual-trigger capture, delayed GPU timing, nested and accumulated counters, overflow and memory sampling, terminal status and reset continuity. Verifies complete CSV rows with collection timings, markers and flight context, and unknown motion across ring reuse.
Source check messages (including original failure wording)

  • create validation device
  • create texture
  • create target
  • no capture without trigger
  • disabled process never captures
  • reset preserves prior capture and writes header only once
  • open timing CSV
  • complete CSV row with collection timings, markers and flight context
  • unprovided flight motion stays unknown across ring reuse
  • clearance metadata/reset
  • cloud flight metadata/reset
  • asynchronous billboard work/reset
  • inclusive draw counts/reset
  • inclusive primitive counts/reset
  • inclusive upload counts/reset
  • inclusive upload bytes/reset
  • nonnegative shader binding duration
  • cross-pass aggregate kind
  • calls reset each frame
  • inclusive buffer payload/reset
  • inclusive texture payload/reset
  • valid process memory
  • valid system memory
  • explicit collection timings
  • explicit memory sample age or unavailable
  • explicit GPU memory availability
  • shader binding duration reset
  • scene metadata
  • nonnegative CPU duration
  • valid GPU duration
  • CPU-only scopes have no GPU duration
  • nested pass parent
  • accumulated CPU row has no GPU query or single parent
  • repeated CPU calls accumulated duration
  • one accumulated row per captured frame
  • repeated calls do not exhaust event budget
  • delayed queries delivered
  • bounded event overflow recorded
  • accumulated counters reset on every frame
  • background memory samples delivered
  • terminal drop counters persisted