Method: Appium::Core::Ios::Xcuitest::Device#start_performance_record

Defined in:
lib/appium_lib_core/ios/xcuitest/device.rb

#start_performance_record(timeout: 300000, profile_name: 'Activity Monitor', pid: nil) ⇒ Object

This is a blocking application. Read help.apple.com/instruments/mac/current/ to understand the profiler.

Examples:


@driver.start_performance_record # default: (timeout: 300000, profile_name: 'Activity Monitor')
@driver.start_performance_record(timeout: 300000, profile_name: 'Activity Monitor')

Parameters:

  • timeout (Integer|String) (defaults to: 300000)

    The maximum count of milliseconds to record the profiling information.

  • profile_name (String) (defaults to: 'Activity Monitor')

    The name of existing performance profile to apply. Execute instruments -s to show the list of available profiles. Note, that not all profiles are supported on mobile devices.

  • pid (Integer|String) (defaults to: nil)

    The ID of the process to measure the performance for. Set it to current in order to measure the performance of the process, which belongs to the currently active application. All processes running on the device are measured if pid is unset (the default setting). Setting process ID while device under test is Simulator might require instruments to be launched with sudo privileges, which is not supported and will throw a timeout exception.

Returns:

  • nil

Since:

  • Appium 1.3.4



# File 'lib/appium_lib_core/ios/xcuitest/device.rb', line 106