Skip to content

Commit

Permalink
Merge pull request #3935 from Dr15Jones/improveFormatForEdmStreamStal…
Browse files Browse the repository at this point in the history
…lGrapher

Framework -- Improved format for edmSTreamStallGrapher.py output
  • Loading branch information
ktf committed May 19, 2014
2 parents 5126390 + 1476782 commit f86f1ed
Showing 1 changed file with 6 additions and 1 deletion.
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

0 comments on commit f86f1ed

Please sign in to comment.