Tries to free some memory by forcing gc and finalization. Write current
memory usage to the log. This can be used to trigger some gc work that
might otherwise interrupt the application causing an animation to stutter
or similar. However, this method can't avoid that...it just increases the
chance that won't happen or at least not that often.