Hi,

I want to profile my multithreaded (pthreads) program, and I found that I can use profil tool of linux. (man profil).

But it does require arguments like:
int profil(char *samples, size_t size, u_long offset, u_int scale);
and I really dont know how to provide these arguments. Does any body has experience in writing program using profil, or perhaps write a sample code to let me know to specify a specific code in a thread to profile

Thanks