-
Notifications
You must be signed in to change notification settings - Fork 212
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
Measuring the Application Launch Time #1119
Comments
I don't know wether this is best way, but you can still launch applications with whatever env variables you want: pymobiledevice3 developer dvt launch com.apple.calculator --env DYLD_PRINT_STATISTICS 1 |
In IOS 15.0 and below, it can output the boot time, but in versions above 15.0, it doesn't. It seems to be because of this arguments = []
env = {
'DYLD_PRINT_STATISTICS': '1'
}
with DvtSecureSocketProxyService(lockdown=lockdown) as dvt:
process_control = ProcessControl(dvt)
pid = process_control.launch(bundle_id=test_bundle_id, arguments=arguments,
kill_existing=True,
start_suspended=False,
environment=env)
print(f'Process launched with pid {pid}')
for output_received in process_control:
print(output_received.message) out
|
Is it feasible to determine the startup duration of an application using pymobiledevice3?
I understand that by emulating Xcode and integrating DYLD_PRINT_STATISTICS, one can achieve a detailed printout of the time spent during various stages of the process.
In theory, this approach should be supported.
However, it appears that this method may not be compatible with iOS versions above 15.
The text was updated successfully, but these errors were encountered: