HF RL Explorer

Add trace memory function and run only profile memory is enabled

Add trace memory function and run only profile memory is enabled: a task in life-science-SWE1.0 (Harbor dataset). Title: Add trace memory function and run only profile memory is enabled

The task

**Title:** Add trace_memory function and run only profile_memory is enabled

Part of scalingX/life-science-SWE1.0.