fixed the debugPanel `drawMemoryGraph` function

this is still broken though, as the memory usage stat are not being
displayed...