CTF: Create directory ust if it doesn't exist

Pick-to: 6.5
Change-Id: I046c045a21a30eb0b6f0e883aa5b49e953f0a586
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
Reviewed-by: Antti Määttä <antti.maatta@qt.io>
This commit is contained in:
Antti Määttä 2023-02-14 12:06:03 +02:00
parent 32098963f2
commit ce4a7d607c

View File

@ -13,6 +13,7 @@
#include <qmetaobject.h>
#include <qendian.h>
#include "qctflib_p.h"
#include <filesystem>
QT_BEGIN_NAMESPACE
@ -96,6 +97,7 @@ QCtfLibImpl::QCtfLibImpl()
m_session.tracepoints.append(var.toString());
m_location = location + QStringLiteral("/ust");
std::filesystem::create_directory(qPrintable(m_location), qPrintable(location));
}
m_session.all = m_session.tracepoints.contains(QStringLiteral("all"));