'Create a new :py:class:`HookRecorder` for a PluginManager.'

def make_hook_recorder(self, pluginmanager):

    assert (not hasattr(pluginmanager, 'reprec'))
    pluginmanager.reprec = reprec = HookRecorder(pluginmanager)
    self.request.addfinalizer(reprec.finish_recording)
    return reprec
