further improve profile output and support rvalue references