ocaml/dune

Expand responsefile content in trace output

Aperta

#5334 aperta il 12 gen 2022

 (1 commento) (0 reazioni) (0 assegnatari)OCaml (478 fork)github user discovery
help wanted

Metriche repository

Star
 (1882 stelle)
Metriche merge PR
 (Merge medio 1g 20h) (345 PR mergiate in 30 g)

Descrizione

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

Guida contributor