Critical trace updates (#6)

* critical trace updates

- better handling of OMNITRACE_USE_PERFETTO in omnitrace-critical-trace exe
- changed some data types in `critical_trace::entry`
- added device ids to critical trace entries
- added process ids to critical trace entries
- added packing to critical trace entries

* Update timemory submodule
Dieser Commit ist enthalten in:
Jonathan R. Madsen
2022-05-24 19:25:54 -05:00
committet von GitHub
Ursprung 5b2c27cccd
Commit 353e8eeb69
11 geänderte Dateien mit 256 neuen und 124 gelöschten Zeilen
+2 -2
Datei anzeigen
@@ -94,7 +94,7 @@ get_cpu_cid_parents(int64_t _tid)
return _v.at(_tid);
}
std::tuple<uint64_t, uint64_t, uint16_t>
std::tuple<uint64_t, uint64_t, uint32_t>
create_cpu_cid_entry(int64_t _tid)
{
using tim::auto_lock_t;
@@ -114,7 +114,7 @@ create_cpu_cid_entry(int64_t _tid)
auto&& _cid = get_cpu_cid()++;
auto&& _parent_cid = get_cpu_cid_stack(_p_idx)->back();
uint16_t&& _depth = get_cpu_cid_stack(_p_idx)->size() - ((_p_idx == _tid) ? 1 : 0);
uint32_t&& _depth = get_cpu_cid_stack(_p_idx)->size() - ((_p_idx == _tid) ? 1 : 0);
get_cpu_cid_parents(_tid)->emplace(_cid, std::make_tuple(_parent_cid, _depth));
return std::make_tuple(_cid, _parent_cid, _depth);