Skip to content

Commit

Permalink
SWDEV-466452: incomplete gromacs pftrace (#1040)
Browse files Browse the repository at this point in the history
* SWDEV-466452: Inserted `tracing_session->FlushBlocking()` after
TRACE_EVENT_END when recording trace events to resolve incomplete
pftrace bug

* Update source/lib/rocprofiler-sdk-tool/generatePerfetto.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Formatting

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jonathan R. Madsen <[email protected]>
  • Loading branch information
3 people authored Sep 9, 2024
1 parent 0f337ae commit ceb7237
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/lib/rocprofiler-sdk-tool/generatePerfetto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ write_perfetto(
itr.correlation_id.internal);
TRACE_EVENT_END(
sdk::perfetto_category<sdk::category::hsa_api>::name, track, itr.end_timestamp);
tracing_session->FlushBlocking();
}

for(auto itr : *hip_api_data)
Expand Down Expand Up @@ -300,6 +301,7 @@ write_perfetto(
itr.correlation_id.internal);
TRACE_EVENT_END(
sdk::perfetto_category<sdk::category::hip_api>::name, track, itr.end_timestamp);
tracing_session->FlushBlocking();
}

for(auto itr : *marker_api_data)
Expand Down Expand Up @@ -331,6 +333,7 @@ write_perfetto(
itr.correlation_id.internal);
TRACE_EVENT_END(
sdk::perfetto_category<sdk::category::marker_api>::name, track, itr.end_timestamp);
tracing_session->FlushBlocking();
}

for(auto itr : *memory_copy_data)
Expand Down Expand Up @@ -365,6 +368,7 @@ write_perfetto(
itr.thread_id);
TRACE_EVENT_END(
sdk::perfetto_category<sdk::category::memory_copy>::name, track, itr.end_timestamp);
tracing_session->FlushBlocking();
}

for(auto itr : *kernel_dispatch_data)
Expand Down Expand Up @@ -424,6 +428,7 @@ write_perfetto(
TRACE_EVENT_END(sdk::perfetto_category<sdk::category::kernel_dispatch>::name,
track,
itr.end_timestamp);
tracing_session->FlushBlocking();
}
}

Expand Down Expand Up @@ -495,6 +500,7 @@ write_perfetto(
mem_cpy_tracks.at(mitr.first),
itr.first,
itr.second / bytes_multiplier);
tracing_session->FlushBlocking();
}
}
}
Expand Down

0 comments on commit ceb7237

Please sign in to comment.