[rocprofiler-systems] Improve rocpd writing speed (#2061)

This commit is contained in:
Milan Radosavljevic
2025-12-03 13:11:15 +01:00
committed by GitHub
parent 09fbf08b40
commit 09a9f9e31d
5 changed files with 27 additions and 22 deletions
@@ -34,7 +34,6 @@ namespace rocpd
{
namespace data_storage
{
static std::mutex _mutex;
class database
{
public:
@@ -182,8 +181,7 @@ public:
std::shared_ptr<sqlite3_stmt> stmt{ p_stmt, sqlite3_finalize };
return [stmt, query, this](Values... value) {
std::lock_guard lock{ _mutex };
int position = 1;
int position = 1;
((bind_value(stmt.get(), position++, value, query)), ...);