Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.34 KB | None | 0 0
  1. Line #    Mem usage    Increment   Line Contents
  2. ================================================
  3.     12     54.1 MiB     54.1 MiB       @profile
  4.     13                                 def __init__(self, parent):
  5.     14                            
  6.     15     54.1 MiB      0.0 MiB           self.drawplotFrame = tk.Frame(parent, width=500, height=500)
  7.     16     54.2 MiB      0.0 MiB           self.drawplotFrame.pack()
  8.     17                            
  9.     18     54.2 MiB      0.1 MiB           self.fig = Figure(figsize=(16, 11))
  10.     19     54.6 MiB      0.3 MiB           self.p = self.fig.add_subplot(1, 1, 1)
  11.     20    111.9 MiB     57.4 MiB           self.p.plot(range(1500000), range(1500000))
  12.     21                            
  13.     22    123.8 MiB     11.9 MiB           self.drawplotCanvas = FigureCanvasTkAgg(self.fig, master=self.drawplotFrame)
  14.     23    123.8 MiB      0.0 MiB           self.drawplotCanvas.get_tk_widget().pack(side=tk.TOP, fill=tk.BOTH, expand=1)
  15.     24    121.0 MiB     -2.8 MiB           self.drawplotCanvas.get_tk_widget().destroy()
  16.     25    121.0 MiB      0.0 MiB           plt.close(self.fig)
  17.     26                            
  18.     27    121.0 MiB      0.0 MiB           gc.collect()
  19.     28                            
  20.     29                            
  21.     30    121.0 MiB      0.0 MiB           print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement