Added some profiling calls to Swift backend

Change-Id: Ic692c897493fe4388568930c2f4f861b89f2ff78
(cherry picked from commit 6d377ae0e334ec8499fc15deada173084bc27779)