Skip to content

Logging allocator wrapper #2337

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

Closed
daurnimator opened this issue Apr 22, 2019 · 2 comments
Closed

Logging allocator wrapper #2337

daurnimator opened this issue Apr 22, 2019 · 2 comments
Labels
standard library This issue involves writing Zig code for the standard library.
Milestone

Comments

@daurnimator
Copy link
Contributor

For debugging, I'd love an allocator in the stdlib that wraps another allocator and logs all operations to e.g. stderr

@Sahnvour
Copy link
Contributor

I think that's a great idea and it can be extended to overlap what @andrewrk is doing on his GPDA: collect allocation stacktraces and warn about leaks, double frees etc.

@andrewrk andrewrk added the standard library This issue involves writing Zig code for the standard library. label Apr 24, 2019
@andrewrk andrewrk added this to the 0.6.0 milestone Apr 24, 2019
@daurnimator
Copy link
Contributor Author

Closed via ad7927a

@andrewrk andrewrk modified the milestones: 0.6.0, 0.5.0 Sep 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
standard library This issue involves writing Zig code for the standard library.
Projects
None yet
Development

No branches or pull requests

3 participants