Class: Google::Apis::ToolresultsV1beta3::GraphicsStats

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/toolresults_v1beta3/classes.rb,
generated/google/apis/toolresults_v1beta3/representations.rb,
generated/google/apis/toolresults_v1beta3/representations.rb

Overview

Graphics statistics for the App. The information is collected from 'adb shell dumpsys graphicsstats'. For more info see: https://developer.android.com/ training/testing/performance.html Statistics will only be present for API 23+.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GraphicsStats

Returns a new instance of GraphicsStats



854
855
856
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 854

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bucketsArray<Google::Apis::ToolresultsV1beta3::GraphicsStatsBucket>

Histogram of frame render times. There should be 154 buckets ranging from [5ms, 6ms) to [4950ms, infinity) Corresponds to the JSON property buckets



797
798
799
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 797

def buckets
  @buckets
end

#high_input_latency_countFixnum

Total "high input latency" events. Corresponds to the JSON property highInputLatencyCount

Returns:

  • (Fixnum)


802
803
804
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 802

def high_input_latency_count
  @high_input_latency_count
end

#janky_framesFixnum

Total frames with slow render time. Should be <= total_frames. Corresponds to the JSON property jankyFrames

Returns:

  • (Fixnum)


807
808
809
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 807

def janky_frames
  @janky_frames
end

#missed_vsync_countFixnum

Total "missed vsync" events. Corresponds to the JSON property missedVsyncCount

Returns:

  • (Fixnum)


812
813
814
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 812

def missed_vsync_count
  @missed_vsync_count
end

#p50_millisFixnum

50th percentile frame render time in milliseconds. Corresponds to the JSON property p50Millis

Returns:

  • (Fixnum)


817
818
819
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 817

def p50_millis
  @p50_millis
end

#p90_millisFixnum

90th percentile frame render time in milliseconds. Corresponds to the JSON property p90Millis

Returns:

  • (Fixnum)


822
823
824
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 822

def p90_millis
  @p90_millis
end

#p95_millisFixnum

95th percentile frame render time in milliseconds. Corresponds to the JSON property p95Millis

Returns:

  • (Fixnum)


827
828
829
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 827

def p95_millis
  @p95_millis
end

#p99_millisFixnum

99th percentile frame render time in milliseconds. Corresponds to the JSON property p99Millis

Returns:

  • (Fixnum)


832
833
834
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 832

def p99_millis
  @p99_millis
end

#slow_bitmap_upload_countFixnum

Total "slow bitmap upload" events. Corresponds to the JSON property slowBitmapUploadCount

Returns:

  • (Fixnum)


837
838
839
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 837

def slow_bitmap_upload_count
  @slow_bitmap_upload_count
end

#slow_draw_countFixnum

Total "slow draw" events. Corresponds to the JSON property slowDrawCount

Returns:

  • (Fixnum)


842
843
844
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 842

def slow_draw_count
  @slow_draw_count
end

#slow_ui_thread_countFixnum

Total "slow UI thread" events. Corresponds to the JSON property slowUiThreadCount

Returns:

  • (Fixnum)


847
848
849
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 847

def slow_ui_thread_count
  @slow_ui_thread_count
end

#total_framesFixnum

Total frames rendered by package. Corresponds to the JSON property totalFrames

Returns:

  • (Fixnum)


852
853
854
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 852

def total_frames
  @total_frames
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



859
860
861
862
863
864
865
866
867
868
869
870
871
872
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 859

def update!(**args)
  @buckets = args[:buckets] if args.key?(:buckets)
  @high_input_latency_count = args[:high_input_latency_count] if args.key?(:high_input_latency_count)
  @janky_frames = args[:janky_frames] if args.key?(:janky_frames)
  @missed_vsync_count = args[:missed_vsync_count] if args.key?(:missed_vsync_count)
  @p50_millis = args[:p50_millis] if args.key?(:p50_millis)
  @p90_millis = args[:p90_millis] if args.key?(:p90_millis)
  @p95_millis = args[:p95_millis] if args.key?(:p95_millis)
  @p99_millis = args[:p99_millis] if args.key?(:p99_millis)
  @slow_bitmap_upload_count = args[:slow_bitmap_upload_count] if args.key?(:slow_bitmap_upload_count)
  @slow_draw_count = args[:slow_draw_count] if args.key?(:slow_draw_count)
  @slow_ui_thread_count = args[:slow_ui_thread_count] if args.key?(:slow_ui_thread_count)
  @total_frames = args[:total_frames] if args.key?(:total_frames)
end