HPCToolkit / hpcviewer.e4

Eclipse 4 version of hpcviewer
Other
9 stars 0 forks source link

Invalid cost attribution in the Flat view for inlined functions #200

Closed laksono closed 2 years ago

laksono commented 2 years ago

Describe the bug The cost attribution of inlined functions can be incorrect if they are called from different sources (or scopes).

To Reproduce

  1. Open any quicksilver database
  2. Open the Flat view
  3. Expand qs load module
  4. Expand ParticleVault.cc file
  5. Expand the constructor
  6. Open each loop inside the constructor
  7. The cost of the loop is 0.3%, but the cost of the inlined function is 1.3%. The reason is that the inlined function is called by different loops and the flat id of the inlined function is the same for each loop.

Screenshots image

Platform (please complete the following information): All platforms

laksono commented 2 years ago

Special case from the same database:

image