Add TraceBuffer entry construction/destruction

Change-Id: I354f36b0d7a0baea0efb75d5e81f169b5f969542


[ROCm/roctracer commit: 2513f9f51f]
Цей коміт міститься в:
Laurent Morichetti committed 2022-07-26 16:23:59 -07:00
1 джерело b2b252ba31
коміт 7f47eb9d02
3 files changed
+111 -100

No files matched your search

+2 -2
Переглянути файл
@@ -62,8 +62,8 @@ int main() {
for (auto&& thread : threads) {
thread = std::thread([&trace_buffer]() {
for (std::size_t j = 0; j < num_iterations; ++j) {
auto* entry = trace_buffer.GetEntry();
entry->valid.store(roctracer::TRACE_ENTRY_COMPLETE, std::memory_order_release);
auto& entry = trace_buffer.Emplace();
entry.valid.store(roctracer::TRACE_ENTRY_COMPLETE, std::memory_order_release);
}
});
}