In [54]:
import sys
sys.path.append('../../monitor')
import job_stats
import cPickle as pickle
In [38]:
j=pickle.load(open('nightly_jobs/2012-10-30/2887373'))
In [39]:
dir(j)
In [40]:
j.hosts
In [41]:
h='i101-111.ranger.tacc.utexas.edu'
dir(j.hosts[h])
In [42]:
j.hosts[h].stats.keys()
In [43]:
j.hosts[h].stats['amd64_core']['0']
In [45]:
j.get_schema('amd64_core')
In [46]:
index=j.get_schema('amd64_core')['SSE_FLOPS'].index
print index
In [52]:
v=j.hosts[h].stats['amd64_core']['0'][:,index]
print v
In [53]:
import numpy
r = numpy.diff(v)/numpy.diff(j.times)
print r
In [37]:
%pylab inline
from pylab import *
t=j.times-j.times[0]
ax=subplot(111)
plot(t[0:-1]/3600.,r)
In [61]:
help(j.hosts[h].get_stats)
In [59]:
j.hosts[h].get_stats('amd64_core','0','SSE_FLOPS')