Add a clear method to a profiler