Expose logic's profile scopes to core.
Namespace ProfileScope to prevent collisions with Valve's code.
Add profile scope helper for logic.
Profile various logic functions.
Profile various core functions.
Merge branch 'profile-core'
Merge branch 'profile-logic'