cl-grep

Simple implementation of grep
Log | Files | Refs

commit 15cb77071aed98e9bf9cba22ab5d4fcfaad1bb77
parent 8ffa6e1beb0863443b0376e2bb805bb7190b7ac1
Author: ChanderG <[email protected]>
Date:   Tue,  9 Dec 2025 19:04:00 +0530

add tracer script

turns out we take a ~20ms hit in the middle due to GC
no solution found for this "problem" yet

Diffstat:
Awith-trace.sh | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/with-trace.sh b/with-trace.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +SS=$1 +DIR=$2 + +script="(progn (setf tracer::*default-arg-converter* tracer::+arg-converter-store-only-simple-objects-and-strings+) (tracer:with-tracing (\"CL-GREP\") (cl-grep:grep-func \"$SS\" \"$DIR\")) (tracer:save-report \"trace.json\" :skip-args nil) (quit))" + +sbcl --load grep.asd --eval "(ql:quickload :grep)" --eval "(ql:quickload :tracer)" --eval "$script"