CTF: Create directory ust if it doesn't exist
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> (cherry picked from commit ce4a7d607c1c848913fa96fdb44cfbecbb19fd71) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
8fdb3ff39d
commit
82e124b7a9
@ -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"));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user