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

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

[Emacs-bug-tracker] bug#6996: closed (`byte-compile-report-ops', `byte-c


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#6996: closed (`byte-compile-report-ops', `byte-code-meter', `byte-metering-on', what are they?)
Date: Tue, 07 Sep 2010 23:28:01 +0000

Your message dated Tue, 7 Sep 2010 19:29:06 -0400
with message-id <address@hidden>
and subject line Re: bug#6996: `byte-compile-report-ops', `byte-code-meter', 
`byte-metering-on', what are they?
has caused the GNU bug report #6996,
regarding `byte-compile-report-ops', `byte-code-meter', `byte-metering-on', 
what are they?
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
6996: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6996
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: `byte-compile-report-ops', `byte-code-meter', `byte-metering-on', what are they? Date: Tue, 7 Sep 2010 17:33:22 -0400
`byte-compile-report-ops', `byte-code-meter', `byte-metering-on', what are they?

Following files:
 src/bytecode.c
 lisp/emacs-lisp/bytecomp.el

define the variables `byte-code-meter', `byte-metering-on' and a function
`byte-compile-report-ops'.

there is this comment in bytecomp.el
 ";;; report metering (see the hacks in bytecode.c)"

I can't find reference to these anywher in docs, archives, etc.
What do these things do?

(byte-compile-report-ops)
=> Debugger entered--Lisp error: (void-variable byte-code-meter)

--
/s_P\



--- End Message ---
--- Begin Message --- Subject: Re: bug#6996: `byte-compile-report-ops', `byte-code-meter', `byte-metering-on', what are they? Date: Tue, 7 Sep 2010 19:29:06 -0400
MON KEY wrote (on Tue, 7 Sep 2010 at 17:33 -0400):

> `byte-compile-report-ops', `byte-code-meter', `byte-metering-on', what are 
> they?
> 
> Following files:
>  src/bytecode.c
>  lisp/emacs-lisp/bytecomp.el
> 
> define the variables `byte-code-meter', `byte-metering-on' and a function
> `byte-compile-report-ops'.

>From src/bytecode.c:

#ifdef BYTE_CODE_METER
  DEFVAR_LISP ("byte-code-meter", &Vbyte_code_meter,...
...
#endif

In the comments in the same file:

  define BYTE_CODE_METER to enable generation of a byte-op usage
  histogram.

So if you are interested, why not define it, re-build and see what
happens?

I have no idea what it does, but since it is not on by default since
1991, and is not documented anywhere, I don't see it as a bug if it
doesn't do whatever it is supposed to do. At the worst it is dead code
that could be deleted.


--- End Message ---

reply via email to

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