Types of metric counts for displays
Synopsis:
#include <screen/screen.h>
enum {
SCREEN_DISPLAY_METRIC_ATTACH_COUNT = 0,
SCREEN_DISPLAY_METRIC_POWER_ON_COUNT = 1,
SCREEN_DISPLAY_METRIC_IDLE_COUNT = 2,
SCREEN_DISPLAY_METRIC_EVENT_COUNT = 3,
SCREEN_DISPLAY_METRIC_UPDATE_COUNT = 4,
SCREEN_DISPLAY_METRIC_UPDATE_PIXELS = 5,
SCREEN_DISPLAY_METRIC_UPDATE_READS = 6,
SCREEN_DISPLAY_METRIC_UPDATE_WRITES = 7
};
Data:
- SCREEN_DISPLAY_METRIC_ATTACH_COUNT
- The number of times the display has been attached (connected) since the last time Screen display metrics were queried.
- SCREEN_DISPLAY_METRIC_POWER_ON_COUNT
- The number of times the display has been powered on since the last time Screen display metrics were queried.
- SCREEN_DISPLAY_METRIC_IDLE_COUNT
- The number of times the display has been in idle state since the last time Screen display metrics were queried.
- SCREEN_DISPLAY_METRIC_EVENT_COUNT
- The number of input events that has been focused (or sent) to the display since the last time Screen display metrics were queried.
- SCREEN_DISPLAY_METRIC_UPDATE_COUNT
- The number of times that the framebuffer of the display has been updated since the last time Screen display metrics were queried.
- SCREEN_DISPLAY_METRIC_UPDATE_PIXELS
- The number of pixels that the framebuffer of the display has updated since the last time Screen display metrics were queried.
- SCREEN_DISPLAY_METRIC_UPDATE_READS
- The number of bytes that has been read from the framebuffer of the display since the last time Screen display metrics have been queried.
The number of bytes read is an estimation calculated based on the number of pixels updated by the framebuffer.
- SCREEN_DISPLAY_METRIC_UPDATE_WRITES
- The number of bytes that has been written to the framebuffer of the display since the last time Screen display metrics have been queried.
The number of bytes written is an estimation calculated based on the number of pixels updated by the framebuffer.
Library:
libscreen
Description:
The metrics are on a per display basis and the counts are reset after being queried. That is, the counts are reset to 0 after you call screen get_display_property_llv() to retrieve SCREEN_PROPERTY_METRICS.