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

Make it possible to stop BatteryStats fully by calling stop_profiling #75

Merged
merged 1 commit into from May 28, 2021

Conversation

odmnk
Copy link

@odmnk odmnk commented May 7, 2021

The Batterystats plugin did NOT really stop the profiler when stop_profiling was called which could be a problem when using the stop_running_condition option. This fix solves this problem by running systrace without the -t flag in another thread. Top stop systrace we send a newline to its stdinput.

Commit includes:

  • Code
  • Tests

@sonarcloud
Copy link

sonarcloud bot commented May 7, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@iivanoo iivanoo merged commit b0304e4 into S2-group:master May 28, 2021
sandervano pushed a commit to sandervano/android-runner that referenced this pull request Jan 21, 2022
Make it possible to stop BatteryStats fully by calling stop_profiling
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.

None yet

2 participants