Instrumenting Lisp for Maxima ??



I might be interested in gathering some statistics about Maxima, particularly in its use of cons cells and other allocated objects.

This really requires instrumenting the underlying Lisp, I would imagine.

If I were to want to instrument every car, cdr, cons, rplaca, replacd, eq, gc, is there a Lisp in which I could turn off all "inlining" of these instructions and then replace them with my own?

Should I attempt to use something like Common Lisp's namespaces & fake out Maxima that way?

Has this instrumentation already been done somewhere?

I worked with GCL/Maxima about 20 years ago, but I would imagine that it has changed a lot since then, so it may not be the best vehicle for this instrumentation.

Thanks for any info.

Henry Baker
Santa Barbara, CA