File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -303,18 +303,22 @@ its not used by any of the targets.)
303
303
** This setting is currently unstable and requires usage of ` -Zunstable-options ` .**
304
304
305
305
The ` --timings ` option will tell ` rustc ` to emit messages when a certain compilation
306
- section (such as code generation or linking) begins or ends. The messages will have
306
+ section (such as code generation or linking) begins or ends. The messages currently have
307
307
the following format:
308
308
309
309
``` json
310
310
{
311
311
"$message_type" : " section_timing" , /* Type of this message */
312
312
"event" : " start" , /* Marks the "start" or "end" of the compilation section */
313
313
"name" : " link" , /* The name of the compilation section */
314
- "time" : 12345 /* Opaque timestamp when the message was emitted, in microseconds */
314
+ // Opaque timestamp when the message was emitted, in microseconds
315
+ // The timestamp is currently relative to the beginning of the compilation session
316
+ "time" : 12345
315
317
}
316
318
```
317
319
320
+ Note that the JSON format of the ` timings ` messages is unstable and subject to change.
321
+
318
322
Compilation sections can be nested; for example, if you encounter the start of "foo",
319
323
then the start of "bar", then the end of "bar" and then the end of "bar", it means that the
320
324
"bar" section happened as a part of the "foo" section.
You can’t perform that action at this time.
0 commit comments