Skip to main content Module benchmark_logs Copy item path Source benchmark_log_directories Returns benchmark log directories mirroring the scripts/lib/benchmark_common.sh logic.
Precedence: MLSTACK_LOG_DIR (when usable), then $HOME/.rusty-stack/logs, then ${TMPDIR:-/tmp}/rusty-stack/logs. collect_matching_logs Collects log files that contain any of the provided patterns, sorted by modification time. extract_benchmark_json_string Extract benchmark JSON as a normalized string. extract_benchmark_json_value Extract a benchmark JSON object from raw log content.
Handles plain JSON files, marker-delimited output, and mixed logs. find_latest_log_in_dirs Finds the most recent log file across the provided directories that matches the pattern.
If any .json file is available, prefer the most recent JSON result. is_json_log