SpiecsEngine
 
Loading...
Searching...
No Matches

◆ Create()

void Spices::NsightPerfGPUProfilerOneshotCollection::Create ( VulkanState & state)

Create this.

Sampling Frequence.

Get traces.yaml path on sampling finished.

Initialize.

Set Output folder.

Set InSession true.

Sampling Frequence.

Get traces.yaml path on sampling finished.

Initialize.

Set Output folder.

Set InSession true.

Definition at line 59 of file NsightPerfGPUProfilerOneshotCollection.cpp.

60 {
62
66 constexpr size_t samplingIntervalInNanoSeconds = 1024 * 16;
67 constexpr size_t maxIntervalPerFrameInNanoSeconds = 100 * 1000 * 1000; // 100ms
68
72 auto onStopSampling = [this](const char* outputDirectory) {
73 m_OutputDirectory = outputDirectory;
74 };
75
80 state.m_Instance ,
81 state.m_PhysicalDevice ,
82 state.m_Device ,
83 samplingIntervalInNanoSeconds ,
84 maxIntervalPerFrameInNanoSeconds ,
86 onStopSampling
87 ))
88
89
92 m_PeriodicSamplerOneShot.m_outputOption.directoryName = SPICES_GPUPROFILEONESHOT_PATH;
93 m_PeriodicSamplerOneShot.m_outputOption.appendDateTime = nv::perf::sampler::PeriodicSamplerOneShotVulkan::AppendDateTime::yes;
94
98 m_IsInSession = true;
99 }
#define NSPERF_CHECK(val)
#define SPICES_PROFILE_ZONE
nv::perf::sampler::PeriodicSamplerOneShotVulkan m_PeriodicSamplerOneShot
PeriodicSamplerOneShotVulkan.

References m_IsInSession, and m_OutputDirectory.

Referenced by BeginFrame(), and NsightPerfGPUProfilerOneshotCollection().