-
Notifications
You must be signed in to change notification settings - Fork 13
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
base: master
Are you sure you want to change the base?
tmf.ui: instrument histogram #181
Conversation
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 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 <[email protected]>
Speed up histogram by not redrawing when the data is unchanged. Change-Id: Iea05f628da6e1baea4fd0be3b6071f363099c9bb Signed-off-by: Matthew Khouzam <[email protected]>
e247bb1
to
1f99bb8
Compare
Updated into two patches. |
return; | ||
} | ||
fDataModel.setSelection(fSelectionBegin, fSelectionEnd); | ||
HistogramScaledData scaledData = fDataModel.scaleTo(canvasWidth, canvasHeight, 1); |
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.
shouldn't this be traced as well?
Add early exit when the model is unchanged