Discussion:
Profiling dillo
Sebastian Geerken
2013-03-01 09:49:30 UTC
Permalink
Hi!

Has anyone tried to use gprof for profiling dillo? Using
"--enable-gprof" for configure seems to work, and calling the tests
(e. g.. test/dw-example) create the file "gmon.out", but not so
does starting src/dillo. The option "-pg" is set everywhere, so I do
not know what the difference is.

Any ideas?

Sebastian
Johannes Hofmann
2013-03-02 16:25:12 UTC
Permalink
Hi,
Post by Sebastian Geerken
Hi!
Has anyone tried to use gprof for profiling dillo? Using
"--enable-gprof" for configure seems to work, and calling the tests
(e. g.. test/dw-example) create the file "gmon.out", but not so
does starting src/dillo. The option "-pg" is set everywhere, so I do
not know what the difference is.
Any ideas?
Did you look in /tmp for the gmon.out file? Cores also end up there.

Johannes
Sebastian Geerken
2013-03-02 18:43:48 UTC
Permalink
Post by Johannes Hofmann
Post by Sebastian Geerken
Has anyone tried to use gprof for profiling dillo? Using
"--enable-gprof" for configure seems to work, and calling the tests
(e. g.. test/dw-example) create the file "gmon.out", but not so
does starting src/dillo. The option "-pg" is set everywhere, so I do
not know what the difference is.
Any ideas?
Did you look in /tmp for the gmon.out file? Cores also end up there.
Ah, yes, it is there. Thanks!

(According to the man page, "gmon.out" is created in the current
working directory, when exit() is called.)

Sebastian
corvid
2013-03-02 23:36:16 UTC
Permalink
Post by Sebastian Geerken
(According to the man page, "gmon.out" is created in the current
working directory, when exit() is called.)
There's a chdir("/tmp") hiding in Paths::init().
p***@public.gmane.org
2013-03-03 10:16:53 UTC
Permalink
Post by corvid
Post by Sebastian Geerken
(According to the man page, "gmon.out" is created in the current
working directory, when exit() is called.)
There's a chdir("/tmp") hiding in Paths::init().
Why don't remove it?
- Fixed Dillo and its dpis to work from "/tmp" (for easy device unmount).

There was a thread discussing it:
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2011-December/009221.html
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2011-December/009223.html
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2011-December/009225.html

Because of this, open dialog starts in /tmp, and it is a bug. Usually
you start dillo from your home directory, why would you want to
unmount it? And if you really plan to unmount it, you can change
working directory yourself.

Loading...