Skip to content

Instantly share code, notes, and snippets.

@JotaroS
Created July 14, 2020 12:00
Show Gist options
  • Save JotaroS/169484f9d89ffd709700837849e085ad to your computer and use it in GitHub Desktop.
Save JotaroS/169484f9d89ffd709700837849e085ad to your computer and use it in GitHub Desktop.
import seaborn as sns
import matplotlib.pyplot as plt
file = open ('input.txt', 'r')
lines = file.readlines()
values = []
for l in lines:
if(l.find('Free heap')!=-1):
print(l)
s = l.split(': ')[1]
s = s.split(' ')[0]
values.append(int(s))
plt.plot(values)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment