cl-grep

Simple implementation of grep
Log | Files | Refs

with-trace.sh (385B)


      1 #!/usr/bin/env bash
      2 
      3 SS=$1
      4 DIR=$2
      5 
      6 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))"
      7 
      8 sbcl --load grep.asd --eval "(ql:quickload :grep)" --eval "(ql:quickload :tracer)" --eval "$script"