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 have 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 have 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