title: how to profile memory usage in dart apps?
body: <p>I have <a href="http://0xor1.net/purity_memory_profile_test/index.html" rel="nofollow">this</a> test app for looking at memory profiles of my dart app. When you click the "new client" button in the top left it will simulate a new client browsing to the host. The host generates a new app session which in this case is a simple app which can create or delete <code>Massive</code> objects. The massive objects live on the Host and the blue squares are the client side representations of the <code>Massive</code> objects. I expect that if I create a bunch of <code>Massive</code> objects and then delete them all, taking heap snapshots along the way, I should see the memory usage rise as the <code>Massive</code> object count increases, and then decrease as the <code>Massive</code> objects are eventually garbage collected, a remote garbage collection is run every 5 seconds which frees the actual <code>Massive</code> object on the Host side so it should then be free for the actual VM garbage collector to clear away.</p>
  
  <p>I have been trying to use the Chrome dev tools to see the heap allocation as I create multiple clients and dispose of the <code>MassiveView</code>s on them. but I don't see anything at all, creating a new <code>Massive</code> object I see a spike in memory allocation but after the object should be freed I don't see any sign of memory usage going down, but I don't know whether I'm using the dev tools wrong or if my framework is just buggy. Is it possible to see a continual feed of memory allocation in Chrome dev tools?</p>