Skip to content

Instantly share code, notes, and snippets.

@modocache modocache/clang.out
Created Aug 1, 2017

Embed
What would you like to do?
clang++ -ftime-report yo.cpp -o yo
===-------------------------------------------------------------------------===
Miscellaneous Ungrouped Timers
===-------------------------------------------------------------------------===
---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name ---
0.0350 ( 48.6%) 0.0030 (100.0%) 0.0380 ( 50.7%) 0.0379 ( 51.1%) Code Generation Time
0.0370 ( 51.4%) 0.0000 ( 0.0%) 0.0370 ( 49.3%) 0.0363 ( 48.9%) LLVM IR Generation Time
0.0720 (100.0%) 0.0030 (100.0%) 0.0750 (100.0%) 0.0742 (100.0%) Total
===-------------------------------------------------------------------------===
Instruction Selection and Scheduling
===-------------------------------------------------------------------------===
Total Execution Time: 0.0040 seconds (0.0052 wall clock)
---User Time--- --User+System-- ---Wall Time--- --- Name ---
0.0010 ( 25.0%) 0.0010 ( 25.0%) 0.0012 ( 22.6%) Instruction Selection
0.0010 ( 25.0%) 0.0010 ( 25.0%) 0.0010 ( 19.8%) Instruction Scheduling
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0008 ( 15.8%) DAG Combining 1
0.0010 ( 25.0%) 0.0010 ( 25.0%) 0.0008 ( 14.8%) DAG Combining 2
0.0010 ( 25.0%) 0.0010 ( 25.0%) 0.0006 ( 12.0%) Instruction Creation
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0004 ( 7.6%) DAG Legalization
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0003 ( 4.8%) Type Legalization
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 1.4%) Vector Legalization
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 1.3%) Instruction Scheduling Cleanup
0.0040 (100.0%) 0.0040 (100.0%) 0.0052 (100.0%) Total
===-------------------------------------------------------------------------===
DWARF Emission
===-------------------------------------------------------------------------===
Total Execution Time: 0.0010 seconds (0.0002 wall clock)
---User Time--- --User+System-- ---Wall Time--- --- Name ---
0.0010 (100.0%) 0.0010 (100.0%) 0.0002 ( 72.2%) DWARF Exception Writer
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 24.8%) Debug Info Emission
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 3.1%) DWARF Debug Writer
0.0010 (100.0%) 0.0010 (100.0%) 0.0002 (100.0%) Total
===-------------------------------------------------------------------------===
... Pass execution timing report ...
===-------------------------------------------------------------------------===
Total Execution Time: 0.0250 seconds (0.0254 wall clock)
---User Time--- --User+System-- ---Wall Time--- --- Name ---
0.0110 ( 44.0%) 0.0110 ( 44.0%) 0.0105 ( 41.2%) X86 DAG->DAG Instruction Selection
0.0060 ( 24.0%) 0.0060 ( 24.0%) 0.0061 ( 23.9%) Expand Atomic instructions
0.0020 ( 8.0%) 0.0020 ( 8.0%) 0.0015 ( 6.0%) X86 Assembly Printer
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0009 ( 3.4%) Prologue/Epilogue Insertion & Frame Finalization
0.0010 ( 4.0%) 0.0010 ( 4.0%) 0.0008 ( 3.3%) Module Verifier
0.0010 ( 4.0%) 0.0010 ( 4.0%) 0.0008 ( 3.2%) Module Verifier
0.0020 ( 8.0%) 0.0020 ( 8.0%) 0.0008 ( 3.1%) Module Verifier
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0008 ( 3.1%) Fast Register Allocator
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0003 ( 1.2%) Two-Address instruction pass
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0003 ( 1.2%) Insert stack protectors
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0003 ( 1.1%) Inliner for always_inline functions
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0002 ( 0.8%) MachineDominator Tree Construction
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0002 ( 0.7%) Dominator Tree Construction
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0002 ( 0.6%) Dominator Tree Construction
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0002 ( 0.6%) Machine Module Information
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0002 ( 0.6%) Machine Natural Loop Construction
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.6%) Free MachineFunction
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.5%) Exception handling preparation
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.5%) CallGraph Construction
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.4%) Remove unreachable blocks from the CFG
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.4%) Post-RA pseudo instruction expansion pass
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.3%) Expand reduction intrinsics
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.3%) Basic Alias Analysis (stateless AA impl)
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.2%) X86 pseudo instruction expansion pass
0.0010 ( 4.0%) 0.0010 ( 4.0%) 0.0001 ( 0.2%) Eliminate PHI nodes for register allocation
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.2%) Expand ISel Pseudo-instructions
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.2%) Bundle Machine CFG Edges
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.2%) Scalarize Masked Memory Intrinsics
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) Inserts calls to mcount-like functions
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) X86 PIC Global Base Reg Initialization
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) Insert XRay ops
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) Lazy Machine Block Frequency Analysis
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) Insert fentry calls
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) Machine Optimization Remark Emitter
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) Machine Optimization Remark Emitter
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) Implement the 'patchable-function' attribute
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) Assumption Cache Tracker
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) Contiguously Lay Out Funclets
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) X86 FP Stackifier
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) Live DEBUG_VALUE analysis
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) Lazy Machine Block Frequency Analysis
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) StackMap Liveness Analysis
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) X86 WinAlloca Expander
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) Local Stack Slot Allocation
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) Analyze Machine Code For Garbage Collection
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) X86 vzeroupper inserter
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) Lower Garbage Collection Instructions
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.1%) Shadow Stack GC Lowering
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Safe Stack instrumentation pass
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Pre-ISel Intrinsic Lowering
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Create Garbage Collector Module Metadata
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Force set function attributes
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Rewrite Symbols
0.0010 ( 4.0%) 0.0010 ( 4.0%) 0.0000 ( 0.0%) Assumption Cache Tracker
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Target Pass Configuration
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Profile summary info
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Machine Branch Probability Analysis
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Target Library Information
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Target Transform Information
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Target Library Information
0.0250 (100.0%) 0.0250 (100.0%) 0.0254 (100.0%) Total
===-------------------------------------------------------------------------===
Clang front-end time report
===-------------------------------------------------------------------------===
Total Execution Time: 2.6200 seconds (2.6193 wall clock)
---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name ---
2.6030 (100.0%) 0.0170 (100.0%) 2.6200 (100.0%) 2.6193 (100.0%) Clang front-end timer
2.6030 (100.0%) 0.0170 (100.0%) 2.6200 (100.0%) 2.6193 (100.0%) Total
g++ -ftime-report yo.cpp -o yo
Execution times (seconds)
phase setup : 0.00 ( 0%) usr 0.00 ( 0%) sys 0.00 ( 0%) wall 1414 kB ( 8%) ggc
phase parsing : 0.10 (100%) usr 0.08 (100%) sys 0.18 (95%) wall 15955 kB (88%) ggc
phase opt and generate : 0.00 ( 0%) usr 0.00 ( 0%) sys 0.01 ( 5%) wall 489 kB ( 3%) ggc
|name lookup : 0.00 ( 0%) usr 0.00 ( 0%) sys 0.04 (21%) wall 1054 kB ( 6%) ggc
preprocessing : 0.02 (20%) usr 0.01 (13%) sys 0.03 (16%) wall 896 kB ( 5%) ggc
parser (global) : 0.00 ( 0%) usr 0.03 (38%) sys 0.04 (21%) wall 6603 kB (37%) ggc
parser struct body : 0.04 (40%) usr 0.00 ( 0%) sys 0.04 (21%) wall 2791 kB (15%) ggc
parser enumerator list : 0.01 (10%) usr 0.00 ( 0%) sys 0.00 ( 0%) wall 44 kB ( 0%) ggc
parser function body : 0.00 ( 0%) usr 0.02 (25%) sys 0.02 (11%) wall 1047 kB ( 6%) ggc
parser inl. meth. body : 0.01 (10%) usr 0.01 (13%) sys 0.03 (16%) wall 1093 kB ( 6%) ggc
template instantiation : 0.02 (20%) usr 0.01 (12%) sys 0.02 (11%) wall 3280 kB (18%) ggc
LRA non-specific : 0.00 ( 0%) usr 0.00 ( 0%) sys 0.01 ( 5%) wall 0 kB ( 0%) ggc
TOTAL : 0.10 0.08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.