profile

add profiling code
change the SELECT return to int32 from int64