Add missing indexes to events table.
Add skip_updating parameter to Sync.
Avoid updating relative_sequence_number on updated Events.
Add StackProf.
Profiling planning loop.
Change profiling to WALL from CPU.