You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c4e2202
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: scripts/probe/thread_profile.py
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -213,7 +213,10 @@ def main():
213
213
})
214
214
rows.sort(key=lambdar: -r["mcycles_per_s"])
215
215
total= (s1["cycles"] -s0["cycles"]) /wall/1e6
216
-
print(f"## {a.label}: process {total:.1f} Mcycles/s, {len(rows)} threads", flush=True)
216
+
main_row=next(rforrinrowsifr["main"])
217
+
all_sw=sum(r["switches_per_s"] forrinrows)
218
+
print(f"## {a.label}: process {total:.1f} Mcycles/s, main {main_row['mcycles_per_s']:.1f} Mcycles/s, main wakeups {main_row['switches_per_s']:.2f}/s, process wakeups {all_sw:.1f}/s, {len(rows)} threads", flush=True)
0 commit comments