[rocprof-sys] Use fmt APIs to construct strings instead of JOIN (#2643)

## Motivation

With the introduction of the new logging system base on `spdlog` library, opportunity shows to replace `timemory` dependent JOIN implementation with `fmt` library `format` and `join` APIs, which are shipped as a part of `spdlog` lib

## Technical Details

Use `fmt` provided APIs to properly format and package strings.
This commit is contained in:
marantic-amd
2026-01-23 06:34:58 +01:00
committed by GitHub
parent 3318c540ea
commit 956a73c4c8
38 changed files with 356 additions and 357 deletions
@@ -209,7 +209,7 @@ get_main_bundle()
auto _self = RUSAGE_SELF;
std::swap(_self, tim::get_rusage_type());
auto _tmp = std::make_unique<main_bundle_t>(
JOIN('/', "rocprofsys/process", process::get_id()),
fmt::format("rocprofsys/process/{}", process::get_id()),
quirk::config<quirk::auto_start>{});
std::swap(_self, tim::get_rusage_type());
return _tmp;
@@ -221,7 +221,7 @@ std::unique_ptr<init_bundle_t>&
get_init_bundle()
{
static auto _v = std::make_unique<init_bundle_t>(
JOIN('/', "rocprofsys/process", process::get_id()));
fmt::format("rocprofsys/process/{}", process::get_id()));
return _v;
}
@@ -230,7 +230,7 @@ get_preinit_bundle()
{
static auto _v =
(setup_gotchas(), std::make_unique<preinit_bundle_t>(
JOIN('/', "rocprofsys/process", process::get_id()),
fmt::format("rocprofsys/process/{}", process::get_id()),
quirk::config<quirk::auto_start>{}));
return _v;
}