![]() |
Rise
The Vieneo Province
|
#include <FrameProfiler11.h>
Classes | |
| struct | GpuQueries |
| struct | Work |
| struct | Memory |
| struct | Event |
| struct | FrameData |
| struct | Frame |
| struct | OutputFrame |
| struct | ChatMarker |
| struct | DeviceMetadata |
| struct | CpuSample |
Public Member Functions | |
| FrameProfiler11 () | |
| ~FrameProfiler11 () | |
| FrameProfiler11 (const FrameProfiler11 &)=delete | |
| FrameProfiler11 & | operator= (const FrameProfiler11 &)=delete |
| void | Reset () |
| void | BeginFrame (ID3D11Device *native, ID3D11DeviceContext *immediate, UINT width, UINT height, UINT samples, bool vsync, double interval) |
| void | Scene (int vehicle, double altitude, bool above, bool outside, int dock, int rain) |
| void | FlightMotion (double verticalSpeedMps, bool valid) |
| void | RecordChat (const wchar_t *message, unsigned channel) |
| void | CloudClearance (float radiusKm) |
| void | CloudScene (bool volume, float base, float top, float density) |
| void | BillboardDecode (double milliseconds) |
| void | GeometryDraw (UINT primitives) |
| void | ConstantUpload (UINT bytes) |
| void | BufferUpload (UINT64 bytes) |
| void | TextureUpload (UINT64 bytes) |
| LONGLONG | BeginShaderBind () const |
| void | EndShaderBind (LONGLONG start) |
| CpuSample | BeginAccumulatedCpu (const char *name) |
| void | EndAccumulatedCpu (const CpuSample &sample) |
| bool | Capturing () const |
| bool | DisplayDetailActive () const |
| void | EnterDisplayDetail () |
| void | LeaveDisplayDetail () |
| int | BeginCpu (const char *name, const char *detail=nullptr, bool displayOnly=false) |
| int | Begin (const char *name, bool gpu=true, bool mergeCpu=false) |
| void | End (int index) |
| void | BeginGpu () |
| void | EndGpu () |
| void | EndFrame () |
Static Public Member Functions | |
| static FrameProfiler11 & | Get () |
Private Types | |
| using | Query = Microsoft::WRL::ComPtr<ID3D11Query> |
| using | OutputQueue = BoundedSpscQueue<OutputFrame,WriterQueueSize> |
Private Member Functions | |
| double | Ms (LONGLONG ticks) const |
| void | ReadClientVersion () |
| void | WriteStatus (FILE *file, bool writerStopped) |
| void | PersistStatus (bool writerStopped) |
| void | SampleMemory () |
| bool | Initialize (ID3D11Device *native, ID3D11DeviceContext *immediate) |
| bool | OpenOutput () |
| void | WriteFrame (const OutputFrame &frame) |
| void | WriteMarker (const ChatMarker &marker) |
| void | WriterLoop () |
| bool | StartWorker (ID3D11Device *native) |
| void | Enqueue (Frame &frame) |
| void | Poll () |
Static Private Member Functions | |
| static Work | Delta (const Work &a, const Work &b) |
| static void | CopyName (Event &event, const char *name) |
| static LONGLONG | Now () |
| static bool | HasFlag (const wchar_t *flag) |
| static void | WriteJsonString (FILE *file, const wchar_t *value) |
Private Attributes | |
| std::unique_ptr< std::array< Frame, RingSize > > | ring |
| Frame * | current =nullptr |
| ID3D11Device * | device =nullptr |
| ID3D11DeviceContext * | context =nullptr |
| Microsoft::WRL::ComPtr< IDXGIAdapter3 > | adapter |
| std::vector< DeviceMetadata > | devices |
| char | clientVersion [64] {} |
| bool | versionRead =false |
| Memory | memory |
| LONGLONG | lastMemory =0 |
| std::unique_ptr< OutputQueue > | outputQueue |
| BoundedSpscQueue< ChatMarker, 64 > | chatQueue |
| std::atomic< UINT64 > | markersDropped {0} |
| double | lastAltitude =0 |
| std::thread | writer |
| HANDLE | wake =nullptr |
| std::atomic< bool > | stopping {false} |
| std::atomic< bool > | captureRequested {false} |
| std::atomic< bool > | ioFailed {false} |
| std::mutex | memoryMutex |
| Memory | sampledMemory |
| FILE * | output =nullptr |
| std::atomic< UINT64 > | writerDropped {0} |
| unsigned | pollNext =0 |
| double | pollMs =0 |
| double | enqueueMs =0 |
| unsigned | next =0 |
| int | parent =-1 |
| int | gpuFrame =-1 |
| UINT64 | sequence =0 |
| std::atomic< UINT64 > | dropped {0} |
| LONGLONG | frequency =0 |
| LONGLONG | started =0 |
| LONGLONG | lastFlush =0 |
| bool | optedIn =false |
| bool | autoCapture =false |
| bool | failed =false |
| bool | fileStarted =false |
| unsigned | displayDepth =0 |
Static Private Attributes | |
| static constexpr unsigned | RingSize =8 |
| static constexpr unsigned | MaxEvents =1024 |
| static constexpr unsigned | MaxGpuEvents =192 |
| static constexpr unsigned | WriterQueueSize =32 |
| static constexpr unsigned | OutputBufferBytes =1024*1024 |
Definition at line 37 of file FrameProfiler11.h.
|
private |
Definition at line 133 of file FrameProfiler11.h.
|
private |
Definition at line 41 of file FrameProfiler11.h.
|
inline |
Definition at line 488 of file FrameProfiler11.h.
|
inline |
|
delete |
|
inline |
Definition at line 634 of file FrameProfiler11.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 621 of file FrameProfiler11.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 622 of file FrameProfiler11.h.
Definition at line 659 of file FrameProfiler11.h.
Definition at line 610 of file FrameProfiler11.h.
|
inline |
|
inline |
Definition at line 677 of file FrameProfiler11.h.
|
inline |
Definition at line 590 of file FrameProfiler11.h.
Definition at line 429 of file FrameProfiler11.h.
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestaticprivate |
|
inlineprivate |
|
inline |
|
inlineprivate |
|
inlinestaticprivate |
|
inlineprivate |
Definition at line 274 of file FrameProfiler11.h.
|
delete |
|
inlineprivate |
Definition at line 223 of file FrameProfiler11.h.
|
inlineprivate |
Definition at line 442 of file FrameProfiler11.h.
|
inlineprivate |
|
inline |
Definition at line 561 of file FrameProfiler11.h.
|
inline |
Definition at line 504 of file FrameProfiler11.h.
|
inlineprivate |
Definition at line 239 of file FrameProfiler11.h.
|
inlineprivate |
Definition at line 408 of file FrameProfiler11.h.
|
inline |
|
inlineprivate |
Definition at line 286 of file FrameProfiler11.h.
|
inlinestaticprivate |
|
inlineprivate |
|
inlineprivate |
Definition at line 345 of file FrameProfiler11.h.
|
inlineprivate |
Definition at line 203 of file FrameProfiler11.h.
|
private |
Definition at line 118 of file FrameProfiler11.h.
|
private |
Definition at line 154 of file FrameProfiler11.h.
|
private |
Definition at line 142 of file FrameProfiler11.h.
|
private |
Definition at line 137 of file FrameProfiler11.h.
|
private |
Definition at line 127 of file FrameProfiler11.h.
|
private |
Definition at line 117 of file FrameProfiler11.h.
|
private |
Definition at line 115 of file FrameProfiler11.h.
|
private |
Definition at line 116 of file FrameProfiler11.h.
|
private |
Definition at line 126 of file FrameProfiler11.h.
|
private |
Definition at line 155 of file FrameProfiler11.h.
|
private |
Definition at line 152 of file FrameProfiler11.h.
|
private |
Definition at line 148 of file FrameProfiler11.h.
|
private |
Definition at line 154 of file FrameProfiler11.h.
|
private |
Definition at line 154 of file FrameProfiler11.h.
|
private |
Definition at line 153 of file FrameProfiler11.h.
|
private |
Definition at line 150 of file FrameProfiler11.h.
|
private |
Definition at line 142 of file FrameProfiler11.h.
|
private |
Definition at line 139 of file FrameProfiler11.h.
|
private |
Definition at line 153 of file FrameProfiler11.h.
|
private |
Definition at line 130 of file FrameProfiler11.h.
|
private |
Definition at line 138 of file FrameProfiler11.h.
|
staticprivate |
Definition at line 39 of file FrameProfiler11.h.
|
staticprivate |
Definition at line 39 of file FrameProfiler11.h.
|
private |
Definition at line 129 of file FrameProfiler11.h.
|
private |
Definition at line 143 of file FrameProfiler11.h.
|
private |
Definition at line 149 of file FrameProfiler11.h.
|
private |
Definition at line 154 of file FrameProfiler11.h.
|
private |
Definition at line 145 of file FrameProfiler11.h.
|
staticprivate |
Definition at line 40 of file FrameProfiler11.h.
|
private |
Definition at line 134 of file FrameProfiler11.h.
|
private |
Definition at line 150 of file FrameProfiler11.h.
|
private |
Definition at line 148 of file FrameProfiler11.h.
|
private |
Definition at line 147 of file FrameProfiler11.h.
Definition at line 114 of file FrameProfiler11.h.
|
staticconstexprprivate |
Definition at line 39 of file FrameProfiler11.h.
|
private |
Definition at line 144 of file FrameProfiler11.h.
|
private |
Definition at line 151 of file FrameProfiler11.h.
|
private |
Definition at line 153 of file FrameProfiler11.h.
|
private |
Definition at line 142 of file FrameProfiler11.h.
|
private |
Definition at line 128 of file FrameProfiler11.h.
|
private |
Definition at line 141 of file FrameProfiler11.h.
|
private |
Definition at line 140 of file FrameProfiler11.h.
|
private |
Definition at line 146 of file FrameProfiler11.h.
|
staticconstexprprivate |
Definition at line 40 of file FrameProfiler11.h.