ntel-gpu-tools/overlay/gem-objects.h
Chris Wilson e1ed5606c6 overlay: Parse gem objects
Condense the information and begin graphing it. Remaining todo for
memory is to measure bind/evict flux, and perhaps clflush.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-18 18:17:05 +01:00

18 lines
382 B
C

#include <stdint.h>
struct gem_objects {
uint64_t total_bytes;
uint32_t total_count;
uint64_t total_gtt, total_aperture;
uint64_t max_gtt, max_aperture;
struct gem_objects_comm {
struct gem_objects_comm *next;
char name[256];
uint64_t bytes;
uint32_t count;
} *comm;
};
int gem_objects_init(struct gem_objects *obj);
int gem_objects_update(struct gem_objects *obj);