#struct #memory #proc-macro #visualizing #github

beancounter

Beancounter provides a proc macro for visualizing struct memory usage

1 unstable release

0.1.0 Apr 21, 2022

#708 in Procedural macros

MIT license

2KB

BeanCounter

About this project.

Add a badge for:

  1. crates.io
  2. github repository
  3. license?
  4. docs.rs
  5. test status with Github Actions
  6. Version?

Installation

[dependencies]
beancounter = "0.1.0"

Usage

Roadmap

  • Add a file to the documentation folder with metadata about struct size.
  • Add a visualization of the struct size using a treemap.
  • Add a visualization of a struct size using a piechart.

Contributing

MSRV

Other Projects

The Rust ecosystem is rich and vibrant. These other projects might fit your needs better than beancounter. Many of them are mature, feature-rich, and robust, beyond beancounter in these dimensions.

  • deepsize. Deepsizeof can measure the amount of heap memory used at runtime by recursively walking the pointers in an object.
  • datasize_derive. This library provides an estimate of heap memory used, and implements the required sizing trait on much of the standard library.
  • malloc_size_of: a Servo library that measures heap memory in a way that integrates with Firefox's memory profiler.

No runtime deps