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

feat(profiler): prepare for flipper plugin publish #42

Merged
merged 4 commits into from
Oct 25, 2022
Merged

Conversation

Almouro
Copy link
Member

@Almouro Almouro commented Oct 21, 2022

No description provided.

Since the Flipper plugin starts/stops the ATrace process, we need to ensure that when restarting it, atrace gets restarted
ensureCppProfilerIsInstalled is responsible for that but is basing itself on the atraceProcess being null or not
Since getCpuClockTick and getRAMPageSize were previously called at the root, just importing the package and running
commands would automatically install the cpp profiler (which is a task taking a few seconds)

Several issues with that:
- loading Flipper would load the Flipper plugin and try to install the c++ profiler which impacts Flipper load time a lot
- since atrace would be started when loading the Flipper plugin, the buffer would already be filled with lots of data when actually starting measures
- just less flexibility in general as we will see in the next commit
@flashlight-bot
Copy link
Contributor

Flashlight Automated Report 🔦

@flashlight-bot
Copy link
Contributor

Flashlight Automated Report 🔦

@MaeIg MaeIg assigned MaeIg and unassigned MaeIg Oct 25, 2022
@Almouro Almouro changed the title Prepare Flipper publish feat(profiler): prepare for flipper plugin publish Oct 25, 2022
@Almouro Almouro merged commit 43e97e3 into main Oct 25, 2022
@Almouro Almouro deleted the fix-for-flipper branch October 25, 2022 08:00
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.

3 participants