Returning code object id information in code_printing.cpp:Instruction (#965)

* Returning code object id information in code_printing.cpp:Instruction

* Adding assertions

* Simplifying decoder library

[ROCm/rocprofiler-sdk commit: 78fd8cb379]
This commit is contained in:
Giovanni Lenzi Baraldi
2024-07-08 16:59:40 -03:00
committed by GitHub
orang tua 19329c3a97
melakukan 0bb2f9a1bd
4 mengubah file dengan 185 tambahan dan 255 penghapusan
@@ -162,6 +162,7 @@ tool_codeobj_tracing_callback(rocprofiler_callback_tracing_record_t record,
while(vaddr < begin_end.second)
{
auto inst = codeobjTranslate.get(vaddr);
assert(inst != nullptr);
if(inst->comment.size())
{
std::string_view source = inst->comment;