Start adding some profiling

Some of these could be assertions or sent out a telemetry channel