The Sauce Labs Cookbook

Sauce Headless

Front End Performance Testing

Insights

External Resources

More Info


Page tree
Skip to end of metadata
Go to start of metadata

Device Vitals is a feature available on Real Devices that collects useful performance data in real time from a device during a live session. Data such as network, CPU, and memory usage helps users understand the general performance of a device and the application under test. Users can view a graph of this performance data in real time as the app is processing.

See the following sections for more information: 

Performance Metrics for Android/iOS Devices 

The graph and csv file will contain these performance metrics for Android devices. 

Metric

Description

cpu_totalSystem-wide CPU usage in percentage across all CPU cores. 4 cores at max use would be shown as a value of 400%
cpu_userCPU usage for user processes in percentage across all CPU cores. 4 cores at max use would be shown as a value of 400%
cpu_kernelAndroid OS CPU usage in percentage across all CPU cores. 4 cores at max use would be shown as a value of 400%
n_threadsTotal threads in use by the app
memory_size_kb Total memory currently used by device in kilobytes
memory_resident_kbMemory currently in use by application in kilobytes
memory_shared_kbAnonymous shared memory currently in use by system shared between application(s) and system

network_wifi_receive_b

Data in bytes received over wifi connection
network_wifi_sent_bData in bytes sent over wifi connection
network_mobile_receive_bData in bytes received from the mobile carrier network
network_mobile_sent_b Data in bytes sent over mobile carrier network


Using Device Vitals 

Appium Test Automation

Device Vitals for Test Automation is supported (General Availability) for Appium Test Automation, test developers are required to add the following desired capability to their code:

capabilities.setCapability("recordDeviceVitals", true);

At the end of the test execution the vitals data file will be available for download from the Appium test report in.


NOTE: This feature is only available for native and hybrid mobile applications. 

Live Testing

Device Vitals for Live Testing is currently in beta state, which means we are testing it on a few devices first. We will roll out to all devices in the coming weeks, please refer to this page for updates. See the full list of combinations available for beta below. 

Where is Device Vitals available in Live Testing?

Please select the testing scenario in the below tabs to see device vitals support:

Device ___________

Platform

iPhone 11iPhone XRiPhone XSiPhone XiPhone 8iPhone 7iPhone 6iPhone 6 PlusiPhone 6S Plus

iPhone 5S

iPhone SEiPad Pro 11 2018iPad ProiPad Air 2019iPad 9.7 2017iPad 4iPad mini 2
iOS 9.3.2
















iOS 10.0.2








(tick)








iOS 10.1









(tick)





iOS 10.3.3














(tick)
iOS 11.4
















iOS 11.4.1
















iOS 12.2



(tick)











iOS 12.4.1
(tick)














iOS 13.0

(tick)













iOS 13.1(tick)















Device ___________

Platform

iPhone 11iPhone XRiPhone XSiPhone XiPhone 8iPhone 7iPhone 6iPhone 6 PlusiPhone 6S Plus

iPhone 5S

iPhone SEiPad Pro 11 2018iPad ProiPad Air 2019iPad 9.7 2017iPad 4iPad mini 2
iOS 9.3.2
















iOS 10.0.2
















iOS 10.1
















iOS 10.3.2
















iOS 11.4
















iOS 11.4.1
















iOS 12.2
















iOS 12.4.1
















iOS 13.0
















iOS 13.1


















Device ___________

Platform

Google Pixel XLGoogle Pixel 3Google Pixel 3aMotorola Moto G6 PlusHuawei P30Google Pixel CHTC U12 PlusHTC U11HTC Desire 12Samsung Galaxy S7Lenovo Tab 4Asus Google Nexus 7 (2013)LG G6LG G5LG G4Huawei P9Amazon Kindle Fire HD 8
Android 5.1.1
















Android 6.0
















Android 6.0.1
















Android 7.0








(tick)






Android 7.1.1







(tick)







Android 8.0.0






(tick)








Android 8.1.0




(tick)










Android 9

(tick)(tick)












Android 10
















Device ___________

Platform

Google Pixel XLGoogle Pixel 3Google Pixel 3aMotorola Moto G6 PlusHuawei P30Google Pixel CHTC U12 PlusHTC U11HTC Desire 12Samsung Galaxy S7Lenovo Tab 4Asus Google Nexus 7 (2013)LG G6LG G5LG G4Huawei P9Amazon Kindle Fire HD 8
Android 5.1.1
















Android 6.0
















Android 6.0.1
















Android 7.0











(tick)



Android 7.1.1









(tick)





Android 8.0.0





(tick)









Android 8.1.0




(tick)










Android 9



(tick)











Android 10