-
-
Notifications
You must be signed in to change notification settings - Fork 687
Expand file tree
/
Copy pathrtrace.ts
More file actions
15 lines (12 loc) · 610 Bytes
/
rtrace.ts
File metadata and controls
15 lines (12 loc) · 610 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { BLOCK } from "./common";
export declare function oninit(heapBase: usize): void;
// Memory Allocator
export declare function onalloc(block: BLOCK): void;
export declare function onresize(block: BLOCK, oldSizeInclOverhead: usize): void;
export declare function onmove(oldBlock: BLOCK, newBlock: BLOCK): void;
export declare function onfree(block: BLOCK): void;
// Garbage collector
export declare function onvisit(block: BLOCK): bool;
export declare function oncollect(total: usize): void;
export declare function oninterrupt(total: usize): void;
export declare function onyield(total: usize): void;