Making PerfLogger a global.

This is required to interpose on setImmediate et. al, which don't have access to RuntimeState.