Module helpers

Module helpers 

Source

Functions§

aggregate_cpu_by_function
Aggregate CPU data by function name to handle recursive calls properly Returns sorted vector by aggregated CPU percentage (descending)
find_svg_files
Find all SVG files in a directory
format_duration
Format duration in human-readable form
get_magnitude
Get magnitude description for percent changes
get_percentile
Get percentile value from sorted array - works with f64 values
parse_single_svg
Parse a single SVG file into a Tree
parse_trees_no_comparison
Parse trees without comparison support for optimal performance This is useful for commands that don’t need comparison functionality
print_compare_classification
Compare classification fields
print_compare_metric
Compare a numeric metric with LLM-friendly indicators - generic over numeric types
resolve_path_to_files
Resolve a path to a list of SVG files, supporting glob patterns