[PATCH 3/3] lib/core/fiber: Put watermarks into stack to track its usage
Cyrill Gorcunov
gorcunov at gmail.com
Wed Mar 13 19:15:13 MSK 2019
On Wed, Mar 13, 2019 at 05:17:24PM +0300, Vladimir Davydov wrote:
>
> Yeah, keep track of the max recorded stack size in a static variable
> and keep advancing the higher watermark position whenever it gets
> overwritten so that we can report max stack size used:
>
> I> max stack size is 73728 bytes
> ...
> I> max stack size is 112640 bytes
>
> (the wording might need polishing)
I see what you mean. Will try.
> >
> > Won't they left unitialized then? The only reason I put nils here
> > is to force them have known values even if they are unused.
>
> I'd set them to NULLs for both cases, i.e. outside ifdef.
OK
More information about the Tarantool-patches
mailing list