File 0681-fix-instrument-carriers-spec.patch of Package erlang
From 1712cd1db7fc2750bc0dd9c5a86950c86796e621 Mon Sep 17 00:00:00 2001
From: Zeyu Zhang <zeyu@fb.com>
Date: Tue, 28 Feb 2023 12:06:21 -0800
Subject: [PATCH] fix instrument:carriers spec
---
lib/runtime_tools/src/instrument.erl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/tools/src/instrument.erl b/lib/tools/src/instrument.erl
index 6b2de541ec..625faea334 100644
--- a/lib/tools/src/instrument.erl
+++ b/lib/tools/src/instrument.erl
@@ -97,9 +97,9 @@ alloc_hist_merge_hist(Index, A, B) ->
InPool :: boolean(),
TotalSize :: non_neg_integer(),
UnscannedSize :: non_neg_integer(),
- Allocations :: {Type :: atom(),
- Count :: non_neg_integer(),
- Size :: non_neg_integer()},
+ Allocations :: [{Type :: atom(),
+ Count :: non_neg_integer(),
+ Size :: non_neg_integer()}],
FreeBlocks :: block_histogram()}]}.
-spec carriers() -> {ok, Result} | {error, Reason} when
--
2.35.3