vm_snapshot_analysis
0.7.6, released 3 years ago by tools.dart.dev
Tools for analyzing the size and contents of Dart VM AOT snapshots.
What it does
Provides libraries and a CLI to parse VM snapshot profiling output, summarizing byte usage by library, class, package, etc. Helps identify size contributors and dependency impact in AOT builds.
AI-written summary of version 0.7.6, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to understand why an AOT snapshot is large
- You want to compare snapshot sizes between builds
- You need to estimate the impact of code changes on snapshot size
Skip it when
- You are not building AOT snapshots
- You need runtime profiling rather than build‑time analysis
Strengths
- Detailed breakdown of data and code sections
- Supports summary and compare commands
- Can estimate dependency tree impact
Weaknesses
- Only works with AOT snapshot profiling files
- No graphical UI, command‑line only
- Niche use case
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
// Install globally
pub global activate vm_snapshot_analysis
// Run summary
snapshot_analysis summary -b package profile.jsonAlternatives
Packages that do the same job and could replace vm_snapshot_analysis.
- gtk
GTK utilities for Flutter Linux applications, providing settings and application lifecycle helpers.
76Compare - flutter_flavorizr
A utility to easily create and configure application flavors in Flutter.
86Compare
Works with
Packages commonly used together with vm_snapshot_analysis: ones it builds on, ones built on it, and its own family.