MCPcopy Create free account
hub / github.com/InoriRus/Kyty / DbgDbSave

Method DbgDbSave

source/emulator/src/Graphics/Objects/GpuMemory.cpp:2022–2039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2020}
2021
2022void GpuMemory::DbgDbSave(const String& file_name)
2023{
2024 KYTY_PROFILER_FUNCTION();
2025
2026 Core::LockGuard lock(m_mutex);
2027
2028 if (!m_db.IsInvalid())
2029 {
2030 Core::Database::Connection db;
2031 if (!db.Create(file_name) && !db.Open(file_name, Core::Database::Connection::Mode::ReadWrite))
2032 {
2033 printf("Can't open file: %s\n", file_name.C_Str());
2034 return;
2035 }
2036 m_db.CopyTo(&db);
2037 db.Close();
2038 }
2039}
2040
2041struct VulkanMemoryStat
2042{

Callers 1

VulkanAllocateFunction · 0.80

Calls 6

printfFunction · 0.85
IsInvalidMethod · 0.45
CreateMethod · 0.45
OpenMethod · 0.45
CopyToMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected