From 81254184f0f3e8a6508c65f68f9e049dcf9c6958 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Wed, 16 Oct 2024 18:43:22 +0200 Subject: [PATCH] tools: Remove demand of unicode support for tprof:format/2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: The tprof:format(IoDevice, ...) would fail if IoDevice did not support unicode encoding. Solution: Replace unicode character "μ" with an ASCII "u". --- lib/tools/src/tprof.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tools/src/tprof.erl b/lib/tools/src/tprof.erl index 7c0e33d3dece..84980c5d80f8 100644 --- a/lib/tools/src/tprof.erl +++ b/lib/tools/src/tprof.erl @@ -1137,7 +1137,7 @@ format_each(Device, call_count, _Total, Inspected) -> [format_out(Device, Fmt, Line) || Line <- lists:reverse(Lines)], format_out(Device, Fmt, [" ", " ", "100.0"]); format_each(Device, call_time, Total, Inspected) -> - format_labelled(Device, "TIME (μs)", Total, Inspected); + format_labelled(Device, "TIME (us)", Total, Inspected); format_each(Device, call_memory, Total, Inspected) -> format_labelled(Device, "WORDS", Total, Inspected).