Skip to content
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

tmf.ui: instrument histogram #181

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MatthewKhouzam
Copy link
Contributor

@MatthewKhouzam MatthewKhouzam commented Nov 19, 2024

Add early exit when the model is unchanged

Copy link
Contributor

@bhufmann bhufmann left a comment

Choose a reason for hiding this comment

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

This PR does more than instrument the histogram. It also adds some update to the code. The instrumentation should be a separate commit and the code change in another commit. The instrumentation should come first. you can both commits in this PR.

Add two flow scope logs and one scope log.

Change-Id: I1b59629da5f7f417880d8f35694fb296eaaddc62
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Speed up histogram by not redrawing when the data is unchanged.

Change-Id: Iea05f628da6e1baea4fd0be3b6071f363099c9bb
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
@MatthewKhouzam MatthewKhouzam force-pushed the histogram-tracing branch 2 times, most recently from e247bb1 to 1f99bb8 Compare November 19, 2024 16:03
@MatthewKhouzam
Copy link
Contributor Author

Updated into two patches.

return;
}
fDataModel.setSelection(fSelectionBegin, fSelectionEnd);
HistogramScaledData scaledData = fDataModel.scaleTo(canvasWidth, canvasHeight, 1);
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this be traced as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants