mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-29 10:24:10 +01:00
[dxvk] Remove unused memory stat counters
This commit is contained in:
parent
ed69da0fff
commit
7a18cb1227
@ -160,12 +160,9 @@ namespace dxvk {
|
||||
|
||||
|
||||
DxvkStatCounters DxvkDevice::getStatCounters() {
|
||||
DxvkMemoryStats mem = m_objects.memoryManager().getMemoryStats();
|
||||
DxvkPipelineCount pipe = m_objects.pipelineManager().getPipelineCount();
|
||||
|
||||
DxvkStatCounters result;
|
||||
result.setCtr(DxvkStatCounter::MemoryAllocated, mem.memoryAllocated);
|
||||
result.setCtr(DxvkStatCounter::MemoryUsed, mem.memoryUsed);
|
||||
result.setCtr(DxvkStatCounter::PipeCountGraphics, pipe.numGraphicsPipelines);
|
||||
result.setCtr(DxvkStatCounter::PipeCountCompute, pipe.numComputePipelines);
|
||||
result.setCtr(DxvkStatCounter::PipeCompilerBusy, m_objects.pipelineManager().isCompilingShaders());
|
||||
|
@ -232,20 +232,6 @@ namespace dxvk {
|
||||
}
|
||||
|
||||
|
||||
DxvkMemoryStats DxvkMemoryAllocator::getMemoryStats() {
|
||||
std::lock_guard<std::mutex> lock(m_mutex);
|
||||
|
||||
DxvkMemoryStats totalStats;
|
||||
|
||||
for (size_t i = 0; i < m_memProps.memoryHeapCount; i++) {
|
||||
totalStats.memoryAllocated += m_memHeaps[i].stats.memoryAllocated;
|
||||
totalStats.memoryUsed += m_memHeaps[i].stats.memoryUsed;
|
||||
}
|
||||
|
||||
return totalStats;
|
||||
}
|
||||
|
||||
|
||||
DxvkMemory DxvkMemoryAllocator::tryAlloc(
|
||||
const VkMemoryRequirements* req,
|
||||
const VkMemoryDedicatedAllocateInfoKHR* dedAllocInfo,
|
||||
|
@ -262,15 +262,6 @@ namespace dxvk {
|
||||
VkMemoryPropertyFlags flags,
|
||||
float priority);
|
||||
|
||||
/**
|
||||
* \brief Queries memory stats
|
||||
*
|
||||
* Returns the total amount of device memory
|
||||
* allocated and used by all available heaps.
|
||||
* \returns Global memory stats
|
||||
*/
|
||||
DxvkMemoryStats getMemoryStats();
|
||||
|
||||
/**
|
||||
* \brief Queries memory stats
|
||||
*
|
||||
|
@ -14,9 +14,6 @@ namespace dxvk {
|
||||
CmdDrawCalls, ///< Number of draw calls
|
||||
CmdDispatchCalls, ///< Number of compute calls
|
||||
CmdRenderPassCount, ///< Number of render passes
|
||||
MemoryAllocationCount, ///< Number of memory allocations
|
||||
MemoryAllocated, ///< Amount of memory allocated
|
||||
MemoryUsed, ///< Amount of memory used
|
||||
PipeCountGraphics, ///< Number of graphics pipelines
|
||||
PipeCountCompute, ///< Number of compute pipelines
|
||||
PipeCompilerBusy, ///< Boolean indicating compiler activity
|
||||
|
Loading…
Reference in New Issue
Block a user