-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rfc] Support per-process catapult trace information #3449
Comments
Just discussed this with Andrey and Pierre, and there's a definitely some demand for this feature. Here's a simple design that might work: Whenever
@snowleopard how does that sound? |
@rgrinberg Sounds good but I don't follow this bit:
We don't need a separate directory for every action. A single directory (say, |
In my scheme, I allow for subcomponents of a particular action to write their own metrics as well. For example, if we run a |
I see, that makes sense. What I'd like to avoid is the need to eagerly create that directory for every action, even though most of them don't need it (at least at first). Do you think we can require the actions that want to produce custom traces to |
I'm personally not worried about it as we create a ton of directories in dune builds and they never show up as overhead. Though allowing the actions to create them sounds fine as well to me. |
As discussed in the meeting, it would be great to allow
--trace-file
to collect timing information provided by sub-processes, for example, OCaml could provide information about time spent in each phase or Coq could provide information about time spent in proofs.I think there are two design choices to make:
Stats.with_process
aware of the trace output file, and include that information once the process has finished. This requires some extending ofFiber.t
tho.--with-trace
is provided. As of today this info doesn't really live in the context so we'll likely have to propagate it there.Thoughts?
Related issues:
The text was updated successfully, but these errors were encountered: