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

Dieser Commit ist enthalten in:
Milan Radosavljevic verfasst und GitHub committed 2025-12-03 13:11:15 +01:00
1 Ursprung 09fbf08b40
Commit 09a9f9e31d
5 Dateien geändert
+27 -22

Keine Dateien entsprechen Ihrer Suche

@@ -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)), ...);