From d9cecd6e42d7503b9fe2592ab6d016d5d5832014 Mon Sep 17 00:00:00 2001 From: Aliaksey Kandratsenka Date: Mon, 3 Jul 2023 16:45:00 -0400 Subject: [PATCH] print errno whenever dumping heap profile fails for some reason Refers to issue #1116 --- src/heap-profiler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/heap-profiler.cc b/src/heap-profiler.cc index 38231d2..39a809b 100644 --- a/src/heap-profiler.cc +++ b/src/heap-profiler.cc @@ -240,7 +240,7 @@ static void DumpProfileLocked(const char* reason) { // a memory lock now. RawFD fd = RawOpenForWriting(file_name); if (fd == kIllegalRawFD) { - RAW_LOG(ERROR, "Failed dumping heap profile to %s", file_name); + RAW_LOG(ERROR, "Failed dumping heap profile to %s. Numeric errno is %d", file_name, errno); dumping = false; return; }