MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / createSessionList

Function createSessionList

contrib/python/dmtcp.py:109–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107
108
109def createSessionList():
110 global sessionList
111 restartScripts = glob.glob('dmtcp_restart_script_*.sh')
112 for script in restartScripts:
113 for line in open(script):
114 if 'ckpt_timestamp' in line:
115 tstamp = line.split('"')[1]
116 sessionList = [(tstamp, script)] + sessionList
117 break;
118 sessionList.sort()
119
120def listSessions():
121 global sessionList

Callers 2

restoreFunction · 0.85
listSessionsFunction · 0.85

Calls 1

openFunction · 0.50

Tested by

no test coverage detected