Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introspection on trace lambdas #1525

Open
Bike opened this issue Dec 2, 2023 · 0 comments
Open

Introspection on trace lambdas #1525

Bike opened this issue Dec 2, 2023 · 0 comments

Comments

@Bike
Copy link
Member

Bike commented Dec 2, 2023

Our trace macro works simply by redefining the traced functions. Besides limiting things to global named functions, there is an additional problem: The introspection interface, e.g. function-source-pos, does not know anything about trace lambdas and so behaves as if the function in trace.lisp is what we want to look at. Which it usually isn't.

SBCL does something with encapsulations for this. Another idea would be to make trace functions their own (funcallable) class, which introspection can then look for and take apart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant