1.0.5 • Published 3 years ago

module_footprints v1.0.5

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
3 years ago

Summary

Show the memory footprint of a Node.js module i.e. how much memory is used when a module is required

Usage

# Install the cli
npm i -g module_footprints

# From any directory with a package.json
npm i
module_footprints

Sample Output

module_footprints
Running test for async
stdout {"rss":1007616,"heapTotal":446464,"heapUsed":383360,"name":"async"}

Running test for easy-table
stdout {"rss":364544,"heapTotal":262144,"heapUsed":199264,"name":"easy-table"}

Module Name  RSS Diff  Heap Total Diff  Heap Used Diff
-----------  --------  ---------------  --------------
async        0.96 MB   0.43 MB          0.37 MB
easy-table   0.35 MB   0.25 MB          0.19 MB