-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a program I want to profile with gprof. The problem (seemingly) is that it uses sockets. So I get things like this:
::select(): Interrupted system call
I hit this problem a while back, gave up, and moved on. But I would really like to be able to profile my code, using gprof if possible…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Background: I have a game (an old-school-esque MUD) which I've been attempting to profile with gprof. The documentation of gprof (on Linux 2.6) states that
The profiled program must call "exit"(2) or return normally for the profiling information to be saved in the gmon.out file.
Now, if I kill…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I do not understand the documentation for gprof regarding how to compile your program for profiling with gprof. In g++, is it required to compile with the -g option (debugging information) in a addition to the -pg option or not. In each case I get different results, and I would like to see where the…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I used to do all my linux profiling with gprof.
However, with my multi threaded app, it's output appears to be inconsistent.
Now, I dug this up
http://sam.zoy.org/writings/programming/gprof.html
howver, it's from a long time ago -- and in my gprof output, it appears my gprof is listing functions…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
What other programs do the same thing as gprof?
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
When I run a program from the console, e.g.
me@box:~$ firefox
I expect the console to log error messages (I think this is std out or std err?) and other items from the program, firefox in this case.
But today I notice that bash just opens the program and goes to a new prompt, e.g.
me@box:~$…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I was updating my .bash_profile, and unfortunetly I made a few updates and now I am getting:
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
-bash: tar: command…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I was updating my .bash_profile, and unfortunetly I made a few updates and now I am getting:
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
env: bash: No such file or directory
-bash: tar: command…
>>> More
-
as seen on Super User
- Search for 'Super User'
ps -e | grep bash
sample output from a linux machine:
1128 pts/14 00:00:00 bash
7491 pts/7 00:00:00 bash
12651 pts/14 00:00:00 bash
16145 pts/2 00:00:00 bash
sample output from a mac machine:
58352 ttys000 0:00.09 login -pfl username /bin/bash -c exec -la bash /bin/bash
58353 ttys000…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
First login process name seems to be set to "-bash", but if I subshell then it becomes "bash". for example:
root@nowere:~# echo $0
-bash
root@nowere:~# bash
root@nowere:~# echo $0
bash
-bash is causing some scripts to fail, such as . /usr/share/debconf/confmodule
exec /usr/share/debconf/frontend…
>>> More