-
Notifications
You must be signed in to change notification settings - Fork 7
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
Structure the HTML summary hierarchically #20
Comments
This seems like a sensible idea, but the treeview might be beyond my html skills (at least right now). If someone edited an output page of profilining by hand to look like how they wanted (make sure there is a nested directory somewhere, so 2-level branching works), then I'd be happy to translate that into code if it looked good (of course, direct patches are welcome too). |
Hmm, it is not completely clear to me how the hierarchy would interact with sorting. One option is that sorting preserves the hierarchy; then everything in Which do we prefer, and why? To me, it would be fine to preserve the hierarchy; I work "per directory" in my brain anyway. But perhaps others would prefer the the current behavior, e.g. to be easily able to count all files with coverage less than 5% and stuff like that... Hrm. |
My main use of sorting is just to find the files that were 'hot', when profiling. Doing per-directory sorting would still make it easy to drill down and find the hot files (in fact, perhaps when profiling, sorting by CPU time would be a better default sort than filename). |
I would like to have directories at the top level, and then be able to sort within each directory by filename, coverage % and number of lines. Current behaviour allows me to sort and easily see files with low coverage, but their list is polluted with files from packages, including even PackageInfo.g files. Maybe an option to specify directories to include/exclude in the report as a workaround? |
There is already a simple way of filtering which files are displayed, you can pass an argument to |
I'd like to have more advanced, like list of directories to include or maybe exclude. One directory is not enough since we may want lib, grp, small etc. |
I think this should be discussed in separate issues, though, else it'll be forgotten / lost. |
Getting a hierarchical view with HTML + CSS is easy. It is even possible to use CSS (no JavaScript) to let the user hide/show the "contents" of a directory with a mouse click. The hardest part of this seems to be to adapt the table sorting code to respect the grouping. But of course even that shouldn't be that hard. My current idea is to do this:
I can work on tweaknig the sorting code, but I don't feel comfortable messing too much with the code in profiling which generates the HTML code, so perhaps Chris wants to work on that? You may want to first merge PR #23, which supplies the colors and some other tweaks. |
Right now, we get a table with lines like these:
To make navigation easier, it would be nice to hide the commen prefix
/Users/alexk/GITREPS/gap-fork/
. Moreover, the file hierarchy could be reflected visually, in the simplest case by using some kind of indention. A fancier way to display it could be an outliner resp. a tree view (you know, something like https://github.com/jonmiles/bootstrap-treeview). Then one could also use that to show aggregated data per subdirectory. E.g.:The text was updated successfully, but these errors were encountered: