X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fprofile.c;h=91753e0f00bf5617f2ca75276b2ba6fe6ada56bd;hb=f94fbd3020e40c3685853c905014f2ae310b02c7;hp=5f2fbf698bbf698f122b0dc1a151d48db9bac070;hpb=3e447015251ce6dcde843cbed10d9033d5538622;p=chise%2Fxemacs-chise.git.1 diff --git a/src/profile.c b/src/profile.c index 5f2fbf6..91753e0 100644 --- a/src/profile.c +++ b/src/profile.c @@ -30,6 +30,10 @@ Boston, MA 02111-1307, USA. */ #include "syssignal.h" #include "systime.h" +#ifndef HAVE_SETITIMER +#error Sorry charlie. We need a scalpel and all we have is a lawnmower. +#endif + /* We implement our own profiling scheme so that we can determine things like which Lisp functions are occupying the most time. Any standard OS-provided profiling works on C functions, which is @@ -60,7 +64,7 @@ Boston, MA 02111-1307, USA. */ static struct hash_table *big_profile_table; Lisp_Object Vcall_count_profile_table; -int default_profiling_interval; +Fixnum default_profiling_interval; int profiling_active; @@ -192,7 +196,7 @@ will be properly accumulated. foo.it_interval = foo.it_value; profiling_active = 1; inside_profiling = 0; - setitimer (ITIMER_PROF, &foo, 0); + qxe_setitimer (ITIMER_PROF, &foo, 0); return Qnil; } @@ -207,7 +211,7 @@ Stop profiling. foo.it_value.tv_sec = 0; foo.it_value.tv_usec = 0; foo.it_interval = foo.it_value; - setitimer (ITIMER_PROF, &foo, 0); + qxe_setitimer (ITIMER_PROF, &foo, 0); profiling_active = 0; signal (SIGPROF, fatal_error_signal); return Qnil;