title: Simple way to get current memory usage from Guppy
body: <p>tl/dr: how do I get the current memory usage of my python program using Guppy?  Is there a simple command?</p>
  
  <p>I'm trying to track memory usage in a python program using guppy.  This is my first usage of guppy, so I'm not very sure of how it behaves.  What I want is 
  to be able to plot the total usage as "time" progresses in a simulation.  This is a basic bit of code for what I can do:</p>
  
  <pre><code>from guppy import hpy
  import networkx as nx
  
  h = hpy()
  L=[1,2,3]
  
  h.heap()
  
  &gt; Partition of a set of 89849 objects. Total size = 12530016 bytes.
  &gt;  Index  Count   %     Size   % Cumulative  % Kind (class / dict of class)
  &gt;     0  40337  45  3638400  29   3638400  29 str
  &gt;     1  21681  24  1874216  15   5512616  44 tuple
  &gt;     2   1435   2  1262344  10   6774960  54 dict (no owner)
  </code></pre>
  
  <p>But I would like to just know what the current size is (the 12530016 bytes).  So I'd like to be able to call something like <code>h.total()</code> to get the total size.  I'd be shocked if this doesn't exist as a simple command, but so far, looking through the documentation I haven't found it.  It's probably documented, just not where I'm looking.</p>