-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
A-json-outputArea: JSON message outputArea: JSON message outputA-timingsArea: timingsArea: timingsC-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.S-waiting-on-feedbackStatus: An implemented feature is waiting on community feedback for bugs or design concerns.Status: An implemented feature is waiting on community feedback for bugs or design concerns.
Description
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 ofcargo package --list
#15353 for a similar discussion ofcargo 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
Labels
A-json-outputArea: JSON message outputArea: JSON message outputA-timingsArea: timingsArea: timingsC-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.S-waiting-on-feedbackStatus: An implemented feature is waiting on community feedback for bugs or design concerns.Status: An implemented feature is waiting on community feedback for bugs or design concerns.
Type
Projects
Status
Unstable, no backers