FreeRTOS Linux/POSIX

Hi, I am usimg FreeRTOS_simulator for linux for my project. I want to check the stack usage of my tasks, so that I was used FreeRTOS watermarking but it wasn’t worked properly. It always returning the value which I was passed while creating the task. please suggest me the way to get the used stack size of my threads.