Open laksono opened 2 years ago
The main cause of this issue is because the line scopes have exactly the same flat id regardless the procedures. Unfortunately hpcprof2 generated different flat id for the same procedure of the same file. This causes confusion in the flat view.
This may be related: using Chombo armGodunov3d database in the flat view, a procedure can contain an inline which has small exclusive cost but its descendants (loops and lines) have high exclusive cost.
In this snapshot the inlined procedure [i] memset
has exclusive cost 0.4% while in the procedure level it's 11.8%.
A loop in the inlined procedure loop at memset.S: 615
has 11.2% of exclusive cost.
Describe the bug Flat view attribution is incorrect for inline nodes. The exclusive costs of the line statements are bigger than its procedure.
Screenshots