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.)
303303** This setting is currently unstable and requires usage of ` -Zunstable-options ` .** 
304304
305305The ` --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
307307the following format:
308308
309309``` json 
310310{
311311    "$message_type" : " section_timing" /* Type of this message */ 
312312    "event" : " start" /* Marks the "start" or "end" of the compilation section */ 
313313    "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 
315317}
316318``` 
317319
320+ Note that the JSON format of the ` timings `  messages is unstable and subject to change.
321+ 
318322Compilation sections can be nested; for example, if you encounter the start of "foo",
319323then the start of "bar", then the end of "bar" and then the end of "bar", it means that the
320324"bar" section happened as a part of the "foo" section.
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments