only print the tracemem output when tracemem is actually active