Added some profiling calls to Swift backend