simpleperf: create tempfile in the same dir as recording file.

perfprofd doesn't have permission to create file at /data/local/tmp.
So switch simpleperf record cmd to create temp file in the directory
storing recording file, where it should always have permission.

Bug: http://b/70232908
Test: run simpleperf_unit_test.

Change-Id: I982c1b6c1fcc6723a686fad60bac66756376e8f7
3 files changed