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

Expose the clock and frequency in CtfTmfTrace #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

siwei-zhang-work
Copy link
Contributor

@siwei-zhang-work siwei-zhang-work commented Sep 23, 2024

The frequency of the CtfTmfTrace is currently exposed in an indirect way using cyclesToNanos(). But sometimes there is the need to get direct frequency. This commit added public methods to get the direct frequency.

[Added] public method to get clock info in CTFTmfTrace
[Added] public method to get frequency in CTFClock

The frequency of the CtfTmfTrace is currently exposed in
an indirect way using cyclesToNanos(). But sometimes there
is the need to get direct frequency. This commit added public
methods to get the direct frequency.

[Added] public method to get clock info in CTFTmfTrace
[Added] public method to get frequency in CTFClock

Signed-off-by: Siwei Zhang <[email protected]>
@MatthewKhouzam
Copy link
Contributor

Hi Siwei, any thoughts on complementing getEnvironment with the frequency? It would require less code and no API changes.

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