ocaml/dune

Expand responsefile content in trace output

Ouverte

#5 334 ouverte le 12 janv. 2022

 (1 commentaire) (0 réaction) (0 personne assignée)OCaml (478 forks)github user discovery
help wanted

Métriques du dépôt

Stars
 (1 882 étoiles)
Métriques de merge PR
 (Merge moyen 1j 20h) (345 PRs mergées en 30 j)

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

Guide contributeur