LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2007, 06:02 PM   #1
mannw72
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
Command to list stack size of each thread in an application


I have created a C program which contain calls to pthread_create.

I am looking for a linux command, acting on the executable, which can list the stack sizes of all the threads created in the program.

Any help is appreciated.
 
Old 03-14-2007, 06:31 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 75
Why not use the proc filesystem (if you’re using linux)?

E.g.,
Code:
cat /proc/${PID}/statm | cut -d " " -f 6
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
size of call stack? vkmgeek Programming 11 11-06-2006 09:42 AM
Stack usage of an application tsenthilt Linux - Software 5 05-14-2006 10:09 AM
Cedega 5.1/Guild Wars - Thread stack size is too small. Reth Linux - General 0 05-05-2006 09:35 PM
Thread stack size failure jdhedden Programming 0 03-27-2006 08:53 AM
Thread call stack StephenG Linux - General 3 08-24-2005 10:34 PM


All times are GMT -5. The time now is 04:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration