Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved format for edmSTreamStallGrapher.py output #3935

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion FWCore/Concurrency/bin/edmStreamStallGrapher.py
Expand Up @@ -82,12 +82,15 @@ def getTime(line):
for n,trans,s,time in processingSteps:
if n == "FINISH INIT":
seenInit = True
oldState = streamState[s]
streamState[s]=trans
waitTime = None
if not trans:
waitTime = time - streamTime[s]
streamState[s]=2
else:
if oldState != trans:
streamState[s]=3
streamTime[s] = time
states = "%-*s: " % (maxNameSize,n)
for state in streamState:
Expand All @@ -96,7 +99,9 @@ def getTime(line):
elif state == 1:
states +="|"
elif state == 2:
states +="*"
states +="-"
elif state == 3:
states +="+"
if waitTime is not None:
states += " %.2f"% waitTime
if waitTime > 0.1 and seenInit:
Expand Down