--- 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 ---