Skip to content

Tracking Issue for JSON timings #10857

@ehuss

Description

@ehuss

Summary

Original issue: #7405
Implementation: #7311
Documentation: N/A

--timings=json is an unstable option which emits some JSON information about the build timings. It outputs one JSON object per rustc invocation defined in TimingInfo.

Unresolved Issues

  • Unclear if this is the right design or is useful. This was added experimentally without any real intent to use it. The concept was based on rustc's build system, which emits timing information using text. The idea was to provide something similar so that users can track their build times on a fine-grained basis. However, I think we are unlikely to use it in rustc in the foreseeable future.
  • Integration of compiler timing data and/or -Zself-profile Add --json=timings option to print build timings compiler-team#873
  • The interaction with Cargo's --message-format. Should we control the output with a unified flag or have a separate --timings flag. See Tracking Issue for JSON output format of cargo package --list #15353 for a similar discussion of cargo package --list.
  • Should the format be versioned?

Future Extensions

About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-json-outputArea: JSON message outputA-timingsArea: timingsC-tracking-issueCategory: A tracking issue for something unstable.S-waiting-on-feedbackStatus: An implemented feature is waiting on community feedback for bugs or design concerns.

    Type

    No type

    Projects

    Status

    Unstable, no backers

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions