From f41623815e49fc35ba81bc9ba0465dff872d2681 Mon Sep 17 00:00:00 2001 From: Francesco Vigliaturo Date: Thu, 18 Aug 2022 15:19:53 +0200 Subject: [PATCH] Increase the max supported stack depth to 128 Signed-off-by: Francesco Vigliaturo --- CHANGELOG.md | 2 ++ src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d4fbc73..941c3058 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- Update `MAX_DEPTH` to 128 + ## [0.10.0] - 2022-06-27 ### Changed diff --git a/src/lib.rs b/src/lib.rs index 01025a42..d8937562 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -40,7 +40,7 @@ //! [README.md](https://github.com/tikv/pprof-rs/blob/master/README.md) /// Define the MAX supported stack depth. TODO: make this variable mutable. -pub const MAX_DEPTH: usize = 32; +pub const MAX_DEPTH: usize = 128; /// Define the MAX supported thread name length. TODO: make this variable mutable. pub const MAX_THREAD_NAME: usize = 16;