Skip to content

dergoegge/treemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Treemap

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/:

wasm treemap

Provided metric scripts:

  • lines.sh: number of lines
  • ccn.sh: cyclomatic complexity

About

Vibe-coded treemap tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published