6

I installed KCachegrind on Ubuntu 14.10

When i click open button, i see Open dialog with default filter of file "Callgrind Profile Data" and not see my file. I must select "All files" in filter and then i see my file.

What extension must have a file that I saw him once when opening this dialog?

vovan
  • 1,460
  • 12
  • 22

2 Answers2

6

I looked up the relevant source code here:

void QCGTopLevel::loadTrace()
{
    QString file;
    file = QFileDialog::getOpenFileName(this,
                    tr("Open Callgrind Data"),
                    _lastFile,
                    tr("Callgrind Files (callgrind.*)"));
    loadTrace(file);
}

It seems you need to prefix the filename with callgrind. to see the file by default. Or you can just select "All Files" from the dropdown.

Jesse Crossen
  • 6,945
  • 2
  • 31
  • 32
5

callgrind. did not work for me, so I checked the code as well:

KUrl url = KFileDialog::getOpenUrl(KUrl(),
i18n("cachegrind.out* callgrind.out*|Callgrind Profile Data\n*|All Files"),

It seems callgrind.out works.

Michał Maluga
  • 453
  • 3
  • 14