Skip to content

Commit

Permalink
add some debug prints to time at max queue length (facebookresearch#198)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebookresearch#198

as above

Differential Revision: D65244784

fbshipit-source-id: 18aa003675319f7cf923ff259c3566dd4e63c9b9
  • Loading branch information
briancoutinho authored and facebook-github-bot committed Oct 31, 2024
1 parent 97acd98 commit 69c1637
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hta/analyzers/trace_counters.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,14 @@ def get_time_spent_blocked_on_full_queue(

dur_at_max_queue_len = df.dur.sum()

logger.info(
f"Rank={rank}, stream={stream}, total dur at max_queue = {dur_at_max_queue_len}"
)
rel_dur_at_max_queue_len = (
dur_at_max_queue_len * 1.0 / t.get_trace_duration(rank)
)
logger.info(
f"Rank={rank}, stream={stream}, total dur at max_queue= {dur_at_max_queue_len} (ns)"
f" trace_duration = {t.get_trace_duration(rank)} (ns)"
f" rel_dur_at_max_queue_len = {rel_dur_at_max_queue_len} (ns)"
)
result[rank] = [stream, dur_at_max_queue_len, rel_dur_at_max_queue_len]

result_df = pd.DataFrame.from_dict(
Expand Down

0 comments on commit 69c1637

Please sign in to comment.