resource.getrusage
Let's just call `getrusage` once on each logcontext change, rather than twice.
Clean up some LoggingContext code.