Add a MockProfiler to base.py.
Fix the MockProfiler's update_profile() method.