omnitrace-sample (#169)

- `omnitrace-sample` executable which executes sampling (no
instrumentation)
- fixes bug with OMPT ignoring value of `OMNITRACE_USE_OMPT`
- fixes some issues with sampling duration
- new `OMNITRACE_SAMPLING_INCLUDE_INLINES` configuration variable
- restricts process-sampling to 100 interrupts/sec when inheriting value
from `OMNITRACE_SAMPLING_FREQ`
- `OMNITRACE_PROCESS_SAMPLING_FREQ` still supports up to 1000
interrupts/sec
- fixes bug with colorized log not truly being disabled in all instances
- adds tests for `omnitrace-sample`
- adds tests for sampling duration
- settings ROCP_TOOL_LIB to libomnitrace-dl throws error
  - rocprofiler does not configure correctly when this is done
- Quiet numa_gotcha warnings
- Fixed some shadowed variables
这个提交包含在:
Jonathan R. Madsen 编写, GitHub 于 2022-09-30 10:47:07 -05:00 提交
1 父节点 4e3527f0ed
当前提交 79a8f16646
29 个文件已更改
+1266 -158

没有与搜索条件相匹配的文件

+2 -2
查看文件
@@ -78,8 +78,8 @@ FILE*
get_file()
{
static FILE* _v = []() {
auto&& _fname = tim::get_env<std::string>("OMNITRACE_LOG_FILE", "");
tim::log::colorized() = _fname.empty();
auto&& _fname = tim::get_env<std::string>("OMNITRACE_LOG_FILE", "");
if(!_fname.empty()) tim::log::colorized() = false;
return (_fname.empty()) ? stderr : tim::filepath::fopen(_fname, "w");
}();
return _v;