Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Boottime mean counts #44

Merged
merged 3 commits into from
May 14, 2024
Merged

Conversation

katieworton
Copy link
Member

Add a table of information which displays how many boottimes were included in the mean boottime for each device.

@katieworton
Copy link
Member Author

@roxell Drafted out an idea for an initial way to display the number of entries included in the mean.

Can you think of a good way to sanity check the outputs here? I think my code is correct, but wasn't 100% sure of the best way to check - I can probably work out how to create a small test case if that's the easiest way.

Also think there are prettier ways to display the data but that can be investigated later :)

@katieworton katieworton force-pushed the boottime-mean-counts branch 2 times, most recently from afd50b4 to bae5aba Compare May 9, 2024 07:57
@katieworton
Copy link
Member Author

Changed this so instead of creating a table, it adds the numbers to the legend.

Also added patches to make the legend in alphabetical order & removed the creation of a DataFrame that was never used before being reassigned.

markers=True,
labels={"build_name_device": "Build name - device"},
labels={"build_name_device_count": "Build name - device (# boottimes)"},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'Build name - device (mean over number of boots)'

.update_layout(xaxis_title="Version", yaxis_title="Boot time"),
f"Line graph, {args.build_name.split('-')[-1]}",
f"This line graph, is generated from \"{args.build_name.split('-')[-1]}\".",
f"This line graph, is generated from an average over {count_per_device2[col_name_boottime_count].sum()} boottimes for \"{args.build_name.split('-')[-1]}\".",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the average isn't over this, different per device right.
Can we reformulate it to mach that?
Maybe something like this?
"This line graph, is generated form an average (or a mean) over number of boots, the number of boots is presented in the 'Build name - device (mean over number of boots)' in the line graph."

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the text a bit (and for the other comment, too) - let me know what you think!

@katieworton katieworton force-pushed the boottime-mean-counts branch from 72a5c2c to afab157 Compare May 14, 2024 09:26
Add a table of information which displays how many boottimes were
included in the mean boottime for each device.

Signed-off-by: Katie Worton <[email protected]>
Remove code that creates a DataFrame then reassigns it before it is ever
used.

Signed-off-by: Katie Worton <[email protected]>
Update the sorting of the data so it is sorted by the legend lines then
by created_at. This will ensure the data for each graph line is in the
correct order while also putting the legend in alphabetical order.

Signed-off-by: Katie Worton <[email protected]>
@katieworton katieworton force-pushed the boottime-mean-counts branch from afab157 to cfb98da Compare May 14, 2024 09:32
@roxell
Copy link
Collaborator

roxell commented May 14, 2024

@katieworton amazing, thank you.

@roxell roxell merged commit 430100f into Linaro:master May 14, 2024
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants