Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#50 identical source file names conflated

open
nobody
None
5
2012-07-25
2012-07-25
Jim Kleck
No

In a large project there may be many source subdirs, and some of them may contain identically names files (e.g. "subdir/src/init.c"). Unfortunately when examining a function, KCacheGrind (Version 0.5.1kde) finds only one of the possibly many files by that name for displaying in the "Source Code" pane, and if it is not the right one then the Source Code pane does not show the correct file nor attributes the costs to the correct code pieces. I see two possible solutions: when KCacheGrind is searching for a src file for the "Source Code" pane it includes the current function in the search (although with static functions that may not resolve the conflict), or find ALL src files with the given name and offer the user a chance to change the one displayed by listing the subdirs in the "Source Code" pulldown menu (right mouse click on "Source Code" tab).

Discussion