Debug: Show column numbers in .tree files

This commit is contained in:
Wilson Snyder
2020-05-30 10:08:30 -04:00
parent e591afd101
commit 35fc8b7259
4 changed files with 16 additions and 7 deletions
+6
View File
@@ -276,6 +276,12 @@ const string FileLine::filebasenameNoExt() const {
return name;
}
const string FileLine::firstColumnLetters() const {
char a = ((firstColumn() / 26) % 26) + 'a';
char b = (firstColumn() % 26) + 'a';
return string(1, a) + string(1, b);
}
const string FileLine::profileFuncname() const {
// Return string that is OK as a function name - for profiling
string name = filebasenameNoExt();