ocaml/dune

Expand responsefile content in trace output

Open

#5,334 opened on Jan 12, 2022

 (1 comment) (0 reactions) (0 assignees)OCaml (478 forks)github user discovery
help wanted

Repository metrics

Stars
 (1,882 stars)
PR merge metrics
 (Avg merge 1d 20h) (345 merged PRs in 30d)

Description

Desired Behavior

When using --trace-file, for very long command lines, show arguments passed to ocaml*.exe instead of -args0 responsefile.data.

When profiling Dune and in particular external commands called with -args0 / -args it's hard/impossible to tell what was actually passed to the external command. For example, for ocamlc executions you cannot always see what source file was actually compiled.

Example

I propose that instead of logging Args: -args0 responsefile.data instead it logs Args: <content of responsefile>, so

Args: <very long list of options> -c file.ml

Alternatively, another value is logged, ReponseFileContent or similiar, with the content of the file:

Args: -args0 responsefile.data
ResponseFileContent: <very long list of options> -c file.ml

Contributor guide