Add profiling calls to TermSqlIndex

Change-Id: Ia7151f204f02e589cf343b2d9f5b8f0216955f2d