new sfepy/base/mem_usage.py - get_mem_usage(), print_mem_usage()