usage: treemap.py [-h] --metric METRIC [--title TITLE] [--color-scale COLOR_SCALE] [--exclude-patterns EXCLUDE_PATTERNS] root
Plot a treemap of files in a directory using a metric.
positional arguments:
root Root directory to scan.
options:
-h, --help show this help message and exit
--metric METRIC Program to run for each file, which takes the file path as input and prints a number to stdout.
--title TITLE Title for the treemap plot.
--color-scale COLOR_SCALE
Color scale for the treemap.
--exclude-patterns EXCLUDE_PATTERNS
Comma-separated list of filename patterns to exclude (supports wildcards, e.g., '*.pb.go').
Example for python3 ./treemap.py --metric ./ccn.sh v8/src/wasm/:
Provided metric scripts:
lines.sh: number of linesccn.sh: cyclomatic complexity