Update lib/rocprofiler-sdk-tool (#755)

- questionable data race within std::regex in CI
- simplify rocprofiler::tool::format
- set config::tmp_directory to default to output_path
- fs::create_directories for tmp_file
- rework get_file_name(...) and compose_tmp_file_name(...) in tool.cpp
Bu işleme şunda yer alıyor:
Jonathan R. Madsen
2024-04-12 03:48:02 -05:00
işlemeyi yapan: GitHub
ebeveyn 7ef9e1ea8c
işleme 87490d0018
6 değiştirilmiş dosya ile 41 ekleme ve 40 silme
+6
Dosyayı Görüntüle
@@ -30,6 +30,9 @@ namespace fs = ::rocprofiler::common::filesystem;
bool
tmp_file::fopen(const char* _mode)
{
auto fpath = fs::path{filename}.parent_path();
if(!fs::exists(fpath)) fs::create_directories(fpath);
if(!fs::exists(filename))
{
// if the filepath does not exist, open in out mode to create it
@@ -101,6 +104,9 @@ tmp_file::close()
bool
tmp_file::open(std::ios::openmode _mode)
{
auto fpath = fs::path{filename}.parent_path();
if(!fs::exists(fpath)) fs::create_directories(fpath);
if(!fs::exists(filename))
{
// if the filepath does not exist, open in out mode to create it