Skip to content

Customize relevant files#126

Draft
ywenc wants to merge 6 commits intojhawthorn:mainfrom
ywenc:customize-relevant-files
Draft

Customize relevant files#126
ywenc wants to merge 6 commits intojhawthorn:mainfrom
ywenc:customize-relevant-files

Conversation

@ywenc
Copy link
Copy Markdown
Collaborator

@ywenc ywenc commented Feb 11, 2025

Allows Vernier::Output::FileListing to be initialized with a custom relevant files filter by filename, so that the files to included in the display can be customized.

A few things that the filter does not handle right now -

  1. The relevant files filter current only considers the file name, and does not allow the sample threshold to be customized, because the total on Output::FileListing accessible after Output::FileListing is initialized. It may make sense to add total to the profile/result. There is already a total_bytes on Vernier::Result, but looks like there is a todo to remove it. Can we keep it? Can we move the entire concept of "total" from an output to the profile/result?

  2. When we parse samples_by_file, the file names from a live profile are changed by the FilenameFilter. When we display, we need to open the files to read the lines, which may not exist under the changed file name. Should we allow FilenameFilter to also be overridden? Would we have both a relevant file names filter + a file name filter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant