Omnitrace sample documentation (#179)

* Documentation for omnitrace-sample

* Improve omnitrace-sample

- improve the printing of the env updates
- remove env settings when something is deactivated
- restore env settings when something is deactivated

[ROCm/rocprofiler-systems commit: 67f7471253]
This commit is contained in:
Jonathan R. Madsen
2022-10-19 03:30:00 -05:00
کامیت شده توسط GitHub
والد 8f8ead76b5
کامیت 7234e8cf45
15فایلهای تغییر یافته به همراه789 افزوده شده و 92 حذف شده
@@ -52,15 +52,7 @@ main(int argc, char** argv)
_argv.emplace_back(argv[i]);
}
std::sort(_env.begin(), _env.end(), [](auto* _lhs, auto* _rhs) {
if(!_lhs) return false;
if(!_rhs) return true;
return std::string_view{ _lhs } < std::string_view{ _rhs };
});
for(auto* itr : _env)
if(itr != nullptr && std::string_view{ itr }.find("OMNITRACE") == 0)
std::cout << itr << "\n";
print_updated_environment(_env);
if(!_argv.empty())
{