Added some profiling calls to Swift backend

Change-Id: Ic692c897493fe4388568930c2f4f861b89f2ff78
Merge "Added some profiling calls to Swift backend"