Meshroom
Meshroom copied to clipboard
[ui] Elapsed time indicators in log
Description
The goal of this PR is to enrich the node log viewer so that finding the steps that require long calculations is easier for users. To achieve that, we retrieve the time value of each log-line (when it exists) and we display the elapsed time between consecutive time values.
We add 2 visual indicators:
- a colored marker next to the line number
- a tooltip when hovering over the line number cell displaying the elapsed time.
For now there are still 2 main issues to work on that I noted:
- the color scale for the markers is arbitrary and definitely requires some fine-tuning
- when changing the chunk while displaying the log, the following QML warning appear:
TextFileViewer.qml:274: TypeError: Value is undefined and could not be converted to an object
The colorbar should have the line height:
Time in tooltip should be formatted h:m:s. The zone to display the Tooltip should include the colorbar.
Should interpolate colors.
The colorbar should be grey if the timing is 0 (and not the same than the background), so we can always see a continuous vertical line.