rustwasm/wee_alloc

Add ability to log allocations/frees for easily reporting bugs

Open

#8 opened on Feb 2, 2018

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Rust (46 forks)github user discovery
assignedhelp wantedmentored

Repository metrics

Stars
 (711 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Summary

We would write all allocations and frees into a buffer that we periodically flush to a file. When people report a bug, they could enable this feature, and provide their log.

Motivation

Easier to file bugs. Easier to reproduce bugs. Therefore, easier to fix bugs.

Details

  • Behind a cargo feature.

  • I guess we could use std::io::BufWriter, and say that this feature requires std

  • Ideally this would use the same operation definitions in ./test, so we could trivially turn them into regression tests. Also, shrink them to get reduced test cases.

Contributor guide