ocaml/dune

Expand responsefile content in trace output

开放

#5,334 创建于 2022年1月12日

 (1 条评论) (0 个反应) (0 位负责人)OCaml (478 个派生)github user discovery
help wanted

仓库指标

星标
 (1,882 个星标)
PR 合并指标
 (平均合并 1天 20小时) (30 天内合并 345 个 PR)

描述

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

贡献者指南