Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extend findPerfDataFiles() to find perf data files #679

Open
GitMensch opened this issue Oct 7, 2024 · 0 comments
Open

extend findPerfDataFiles() to find perf data files #679

GitMensch opened this issue Oct 7, 2024 · 0 comments

Comments

@GitMensch
Copy link
Contributor

This came up in #677 which created the function (which is also to be used in #678)

Please let it:

  • return all files per our file open - re

    hotspot/src/mainwindow.cpp

    Lines 287 to 294 in e6ce4c4

    QString MainWindow::queryOpenDataFile()
    {
    const auto filter = tr("Hotspot data Files (perf*.data perf.data.* *.perfparser *.perfparser.*);;"
    "Linux Perf Files (perf*.data perf.data.*);;"
    "Perfparser Files (*.perfparser *.perfparser.*);;"
    "All Files (*)");
    return QFileDialog::getOpenFileName(this, tr("Open File"), QDir::currentPath(), filter);
    }
    -> list dir for perf*.data perf.data.* *.perfparser *.perfparser.*
  • order by date descending
  • add an optional parameter to limit the result (this would be used with "1" in the existing cases and early exit the loop that gathers the files)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant