Do not swallow trace_to_text stderr in heap_profile script.
Change-Id: I1fb8129ebccd3183576563e19475b0c7b8df47d1
diff --git a/tools/heap_profile b/tools/heap_profile
index 5a74880..0e29f86 100755
--- a/tools/heap_profile
+++ b/tools/heap_profile
@@ -71,8 +71,6 @@
return local_file
-NULL = open('/dev/null', 'r')
-
CFG_IDENT = ' '
CFG='''buffers {{
size_kb: 32768
@@ -234,8 +232,7 @@
'/data/misc/perfetto-traces/profile-{}'.format(user),
'/tmp/profile'], stdout=NULL)
trace_to_text_output = subprocess.check_output(
- [trace_to_text_binary, 'profile', '/tmp/profile'],
- stderr=NULL)
+ [trace_to_text_binary, 'profile', '/tmp/profile'])
profile_path = None
for word in trace_to_text_output.split():
if 'heap_profile-' in word: