blob: f037c76214a2754a13b3d12c219d9cab90640b75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "runtime.h"
#include <stdio.h>
/* Host-side measurement tool; never linked into libpure-execution.a. */
int main(void) {
printf("{\"domain_bytes\":%zu,\"work_slot_bytes\":%zu,\"ticket_bytes\":%zu,"
"\"pointer_bytes\":%zu",
sizeof(PureRuntime), sizeof(PureWork), sizeof(PureTicket), sizeof(void *));
#ifdef PURE_ASYNC_EFFECTS
printf(",\"effect_bytes\":%zu", sizeof(PureEffect));
#endif
puts("}");
return 0;
}
|