Add graph of tool usage over time to the HTML instrumentation report#204
Merged
Merged
Conversation
Add a new tool usage line graph to the instrumentation report. More generally, this commit introduces the ability to generate "usage" / "concurrency" line graphs, which can show how the number of jobs that are scheduled varies over time, partitioned by some arbitrary function. The base `ConcurrencyLineGraph` just shows how many jobs are running at one time, which isn't useful in tandem with the existing parallelism chart. But if we have metadata available, then we can instead render a `ToolUsageLineGraph`, where we partition the running jobs by tool used. This graph can be one of the largest (e.g. 2MB for 50k jobs) - in the future, it would be nice to be able to apply some sort of sensible quantization / smoothing of the graph data to reduce the resolution for the normal rendering profile, to further reduce the size of the generated report. Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
This was referenced May 20, 2026
machshev
approved these changes
May 21, 2026
Collaborator
machshev
left a comment
There was a problem hiding this comment.
Nice, thanks @AlexJones0!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is the eleventh of a series of PRs to introduce instrumentation reporting to DVSim.
This PR adds a 3rd instrumentation report visualization, which is a time series graph showing how tools are used over time. This graph is only created if metadata is available in the instrumentation report. At each point in time, the graph should visualize how many jobs were running that use a given tool. The motivation is to expose:
See the commit message for more info.
Here are some examples of the generated
metrics.htmlreport from runs on the OpenTitan repository: