-
Notifications
You must be signed in to change notification settings - Fork 97
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
Aggregate button added #65
Aggregate button added #65
Conversation
How does aggregation affect the order column ? Is the order counted from the 1st instance or is it random? |
Kind of random. The first value in the sequence of GroupBy return values is used. (group.First()) The order of Dictionary.Values used in KKS is the order in which they were added. We can still read the rough order, but should we make it so that the smallest value in a group is displayed? This is unrelated, but added re-sorting when changing options. |
Fixed a problem that the data is not aggregated when _needResort flag is OFF. |
I think the smallest value should be used for the order. |
I just took a look at the source and the current Max implementation should be fine. I'll test it later and merge if all is good. |
Sorry if you have already tested it. |
Bug fixed. |
@@ -307,10 +321,25 @@ private IEnumerator FrameEndCo() | |||
} | |||
} | |||
|
|||
if (_needResort) | |||
if (_needResort || _aggregation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This appears to be a part of the issue, it shouldn't be resorting on every frame.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required to update aggregated values.
Aggregated values are not updated by Postfix.
Thanks for the review. |
It updates correctly now. The only issue left that I can see is the "Ran" column shows the right toggle as It might be best to remove the right toggle in Aggregate mode since some methods might run and others might not. Maybe replace the column with "any ran". Alternatively 3-state checkboxes could be used I suppose, but I'm not sure if IMGUI supports that. |
Sorry, I didn't think that far ahead. Remove right toggle when in aggregate mode. Separate aggregate from executed and non-executed. The toggle on the left should now be accurate. Is the SinceLastRun type of byte an intentional specification? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good now, thank you for the PR!
Thanks too for the review and the useful tool! |
Aggregate button added. It aggregates ticks and gcbytes of the same function.
Please merge if you like.
It was clear that DynamicBone was the slowest, but we wanted to be sure. I also wanted to make sure that there were not a large number of instances at the bottom of the list that would cause slowness.