Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What default extension of KCachegrind

Tags:

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?

like image 970
vovan Avatar asked Jul 04 '15 08:07

vovan


2 Answers

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.

like image 163
Jesse Crossen Avatar answered Sep 28 '22 08:09

Jesse Crossen


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.

like image 21
Michał Maluga Avatar answered Sep 28 '22 07:09

Michał Maluga