Record method invocations for an entire object graph