Performance counter changes

Move this into the app startup instead of being in the library or make it more explicit.