title: How do i get last n line stack using pstack command?
body: <p>I am using pstack command in my c++ code and storing it in a string. The problem is it prints the stack upto last function and string becomes very heavy. Is there any way to print only last n lines of stack using pstack?</p>
  
  <p>If it can't be done using pstack, then is there any other way to solve this purpose?</p>