bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs 22.1 hogging CPU


From: David L
Subject: emacs 22.1 hogging CPU
Date: Mon, 18 Jun 2007 11:04:19 -0700

I started emacs like this:
emacs -l shared/sw/gvu/src/../bin/fc6debug1_1t/gtkview.nep2 -f nep-build-and-load-tags -title "fc6debug1_1t gtkview"

For several minutes after I started it, emacs was using between 10%
and 40% of a 3GHz P4.  This problem is either new with the 22.1
release or is much worse now.  I don't know how to profile emacs
to tell what's using the CPU, but emacs appears to be doing nothing
at the time except waiting for user input... the building and loading
of etags had long since finished.


The contents of the gtkview.nep2 file looked like this:
(defconst nep-project-name "shared/sw/gvu/bin/fc6debug1_1t/gtkview.nep"
"Define the full name of this project file relative to the CVS root level")
(defconst nep-build-dir "shared/sw/gvu/src"
 "Defines the build directory relative to the CVS root level")
(defconst nep-bin-dir "shared/sw/gvu/src/../bin"
 "Defines the bin directory relative to the CVS root level")
(defconst nep-exec-root "gtkview"
 "Defines the DL-style executable root name")
(defconst nep-build-script "./buildgtkview"
 "Defines the DL-style buildscript")
(defconst nep-build-target "fc6debug1_1t"
 "Defines the DL-style target")
(defun nep-debug-project ()
(interactive)
(gdb "gdb -cd=/projects/ct/team/dl/tim/svncvs/trunk/shared/sw/gvu/src --annotate=3 /projects/ct/team/dl/tim/svncvs/trunk/shared/sw/gvu/src/../bin/fc6debug1_1t/gtkview")) (defconst nep-tags-file-name "/projects/ct/team/dl/tim/svncvs/trunk/shared/sw/gvu/src/../bin/fc6debug1_1t/gtkview.etags")
 (defconst nep-cvsrootlevel "/projects/ct/team/dl/tim/svncvs/trunk")
(defconst nep-current-project "/projects/ct/team/dl/tim/svncvs/trunk/shared/sw/gvu/src/../bin/fc6debug1_1t/gtkview.el") (defconst nep-current-project-makefile "shared/sw/gvu/src/makefile.gtkview")


The function nep-build-and-load-tags looks like this:
;; function called when using the "emacs" target
(defun nep-build-and-load-tags ()
 (add-hook 'compilation-finish-functions 'nep-load-tags-after-compile)
 (nep-build-etags)
 (visit-tags-table nep-tags-file-name)
 (find-tag "main")
)

The function nep-build-etags looks like this:
(defun nep-build-etags ()
 (interactive)
 (compile (concat "cd " nep-cvsrootlevel "/"
                  nep-build-dir "; "
                  nep-build-script " "
                  nep-build-target " etags"))
 )


The problem seems to be intermittent.


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
   `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/local/share/emacs/22.1/etc/DEBUG for instructions.


In GNU Emacs 22.1.1 (i686-pc-linux-gnu, GTK+ Version 2.10.8)
of 2007-06-18 on chewbacca.x.com
Windowing system distributor `The X.Org Foundation', version 11.0.70101000
configured using `configure  '--with-x-toolkit=gtk''

Important settings:
 value of $LC_ALL: nil
 value of $LC_COLLATE: nil
 value of $LC_CTYPE: nil
 value of $LC_MESSAGES: nil
 value of $LC_MONETARY: nil
 value of $LC_NUMERIC: nil
 value of $LC_TIME: nil
 value of $LANG: nil
 locale-coding-system: nil
 default-enable-multibyte-characters: t

Major mode: C++/l

Minor modes in effect:
 tooltip-mode: t
 tool-bar-mode: t
 mouse-wheel-mode: t
 menu-bar-mode: t
 file-name-shadow-mode: t
 global-font-lock-mode: t
 font-lock-mode: t
 blink-cursor-mode: t
 unify-8859-on-encoding-mode: t
 utf-translate-cjk-mode: t
 auto-compression-mode: t
 line-number-mode: t
 abbrev-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <menu-bar> <help-menu> <report-emacs-b
ug>

Recent messages:
Loading cc-mode...done
Loading /home/dl/ecb/semantic-1.4.4/semantic-c.el (source)...done
Loading vc-svn...done
Loading vc...done
Mark set
(iconify-frame (#<frame address@hidden 0x85f0e28>))
(make-frame-visible (#<frame address@hidden 0x85f0e28>))
(iconify-frame (#<frame address@hidden 0x85f0e28>))
(make-frame-visible (#<frame address@hidden 0x85f0e28>))
Loading emacsbug...done

_________________________________________________________________
Like puzzles? Play free games & earn great prizes. Play Clink now. http://club.live.com/clink.aspx?icid=clink_hotmailtextlink2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]