General :: Profile A Multithreaded Program Using Gprof?
Jan 7, 2010How to profile a multithreaded program using gprof?
View 1 RepliesHow to profile a multithreaded program using gprof?
View 1 RepliesI have a program called "Device Manager" to manange usb tokens for sending and recieving
multiple data to/from them using shared memory method.Here is a piece of "Device Manager" code:
Code:
int main()
{
[code]...
I need GNU gprof source code. I have searched on Internet but didn't find anywhere. Can any give me the link for downloading the same?
View 3 Replies View RelatedWe run Jboss app server that of course is all multithreaded under one JVM. I have couple of question regarding monitoring on per thread basis:
1. Is there a way to see which thread is bound to which CPU core?
2. Is there a way to see the CPU, Memory usage per thread? Something like prstat on Sun box which is real time and gives detailed information about threads per CPU
Is it possible to create a selinux profile for a program like with Apparmor?
View 4 Replies View RelatedHow do I share default profile file by NIS so that I do not have to setup profile in every NIS clients?
View 3 Replies View RelatedI've already gotten into the .mozilla folder and found the profiles.ini file. My windows XP system has it's Documents and Settings folder on a seperate drive (D:Documents and settings) And I've located the profile (application datamozillafirefoxprofiles) Now all I need to do is put the path into the profiles.ini file in the .mozilla folder in Ubuntu. The problem is I don't know exactly how to format it.
In windows the path is:
How would I translate this into something ubuntu "follows?" I already have the profile name changed as well.
I threw this togher based on the examples but the thread does not seem to run:
Code:
#include <stdio.h>
#include <pth.h>
[code]...
I'd like to run a program [URL] from the GUI menu (yes, I know I can run it from the command line). I've gotten this to work by using a menu entry (see attached screenshot).The command is:
Code:
gksu chkrootkit
with the option for Type: was selected as Application in Terminal However, when chkrootkit is finished, the terminal immediately snaps shut according to the profile selection: When Commands Exits: Close terminal What I'd like to do is create another profile that causes the terminal to be held open (see screenshot) when the command exits and be able to choose that profile from the GUI Menu entry. I believe the command when using the CLI is:
Code:
gnome-terminal --profile=<profile_name>
how do I incorporate this within the Command entry line of the launcher?
i need to debug a application which is using many threads. i am using eclipse with GDB debugger but it is not possible to debug it since it has a lot of different threads and i can not not debug it as wre debug in case of single thread(main) . So i would like to know, is there a way to debug such an application, if there is some tutorial that would be nice to know.
View 8 Replies View RelatedI have a multi-threaded process running and I have to limit the cpu time used by each of the threads. If 1 of the threads uses the whole of configured CPU time, the other thread should sleep and not consume CPU time in that cycle. 1 thread has higher preference over the other. How can i implement it my CPP code?
View 1 Replies View RelatedIt it safe to read a shared integer while another thread is writing to it on a multicore system?
View 3 Replies View RelatedHow can i edit the environment file?
View 3 Replies View Relatedhow can i upload my pic into my profile.
View 9 Replies View RelatedI am using red-hat linux-5 version. My profile become corrupt and now I can't see the files, folders I had saved. How can I recover my corrupt profile.when I open my profile there appears no data.
View 1 Replies View RelatedI've recently installed virtualenv + virtualenvwrapper on Linux Mint 10 LXDE. For convenience I've added the standard WORKON_HOME settings to my ~/.profile
export WORKON_HOME=$HOME/Envs
source /usr/local/bin/virtualenvwrapper.sh
Then I've noticed that workon does not work after login, which means the above commands were not run. If I source ~/.profile then it works. I'm really not sure what could cause .profile not being run? I've checked and I don't have .bash_profile or .
How to add a new role and profile for new user by using the command "useradd" in linux.In solaris there is an options(useradd -R and useradd -P) for these actions, like this how to add role and profile for new user in linux.
View 3 Replies View RelatedA cluster with a head node and compute nodes. An application with a couple of env variables (App_HOME, PATH) set in .profile (default shell sh). If I login to the head node/compute nodes on a terminal everything works fine. The correct env variables are set and the application works. However, when my application tries to do it, say ssh <compute node1> <application>, it appears the environment variables are not available. It only looks in the minimal /bin, /usr/bin type PATH. This tells that the .profile is not being read
View 2 Replies View RelatedProfile is getting called twice for every login change. Interestingly when i use SU, it is invoked once only. how to set profile to be called only once.
View 3 Replies View RelatedI can't store LD_LIBRARY_PATH in /etc/profile. After restart the variable is empty. All OK with any other variable, for example INFORMIXDIR, but not with LD_LIBRARY_PATH. If I use EXPORT command in the console all OK. I'm using Ubuntu 10.04. What's wrong?
View 13 Replies View RelatedI have a Finnix live CD. I can customize it by remastering it. When I boot with the live CD I need to make a little change in the boot profileThe boot profile before making the changes islinux apm=power-off vga=791 initrd=minirt quiethe boot profile after making the change become linux apm=power-off vga=791 initrd=minirt quiet root=/dev/sr0Now, I need to make this change (adding root=/dev/sr0) permanent. How can I do that?
View 1 Replies View RelatedI know the way to create a new firefox profile in Windows.
I want to create a new firefox profile in linux/solaris.
I'm building the code on remote linux machines, and it takes very long time. Since all the filesystem is on NFS, I suspect the NFS is the bottleneck. Can I profile the build process (make all) down to system read/write calls? Or simply put, what tool do I need to find the bottleneck. Is strace gonna help?
View 1 Replies View RelatedI want to append following text to my profile file from script:
JAVA_HOME="/usr/lib/jvm/java-6-sun"
CATALINA_HOME="/usr/share/tomcat6"
CATALINA_BASE="/var/lib/tomcat6"
ANT_HOME="/usr/share/ant"
export JAVA_HOME CATALINA_HOME CATALINA_BASE ANT_HOME
Kindly let me know how can I accomplish this?
I have a monitor with oversaturated red (HP LP2475w). I am able to apply ICC profile to various apps like GIMP and Firefox and Gnome. But I'd like to apply it to everything - because e.g. Flash animations in Firefox are rendered by Flash and don't use ICC. So, can I apply it to whole X?
View 2 Replies View Relatedmy opera browser keep getting reseted every time i open it (i.e the opened tabs , browser settings etc), i am using Debian squeeze on my pc.
View 3 Replies View RelatedUsing Fedora 13, I need to specify the language and keyboard on a per user basis. I am familiar with the necessary changes if editing system-wide /etc/sysconfig/i18n just not sure where the custom settings need to be based on user.
View 1 Replies View RelatedIf I want a script to start with the system, i'd put in profile ? this is on a jaunty box. Its my webserver, i login via NX to fiddle. when i do this webcam starts logout webcam stops. motion is in starting programs.while we're at it where does karmic, and jaunt store its EDITOR varible, i wish to chage the default editor.
cheers
How do i encrypt & decrypt password in a file for security reason ? is there any shell scripts available to do the same?
OS : aix 5.3
I've been handed the role of looking after my company ftp server which is running redhat. I've logged on as root & have somehow lost all of the menu items from the grey toolbar. All i now have on the desktop are the disk & partition icons. I haven't changed / added anything, just logged on to the box. The only way i can log out or reboot is to press in the server power button which cannot be right ? Is there anyway of making the menu options visible so that i can at least familiarise myself with the O/S ?
View 3 Replies View Related