kcachegrind

What default extension of KCachegrind


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?


Solution

  • 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.