2009-06-27 00:21:49 +00:00
|
|
|
#ifndef OVM_TRACE_H
|
|
|
|
#define OVM_TRACE_H
|
|
|
|
|
|
|
|
#include "base.h"
|
|
|
|
|
2009-06-27 10:34:30 +00:00
|
|
|
typedef struct {
|
|
|
|
guint32 addr;
|
|
|
|
gdouble value __attribute__ ((__packed__));
|
|
|
|
} trace_entry_point_t;
|
|
|
|
|
2009-06-27 00:21:49 +00:00
|
|
|
typedef struct {
|
|
|
|
guint32 timestamp;
|
|
|
|
guint32 count;
|
2009-06-27 10:34:30 +00:00
|
|
|
trace_entry_point_t data[];
|
2009-06-27 00:21:49 +00:00
|
|
|
} trace_entry_t;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
guint32 magic, team, scenario;
|
|
|
|
GPtrArray *data;
|
|
|
|
gsize pos;
|
|
|
|
} trace_t;
|
|
|
|
|
|
|
|
trace_t *trace_load(const gchar *filename);
|
|
|
|
void trace_free(trace_t *trace);
|
|
|
|
|
|
|
|
#endif
|