readme.md
1## Primitives:
2
3- `prim.c` contains Windows primitives for OS allocation.
4
5## Event Tracing for Windows (ETW)
6
7- `etw.h` is generated from `etw.man` which contains the manifest for mimalloc events.
8 (100 is an allocation, 101 is for a free)
9
10- `etw-mimalloc.wprp` is a profile for the Windows Performance Recorder (WPR).
11 In an admin prompt, you can use:
12 ```
13 > wpr -start src\prim\windows\etw-mimalloc.wprp -filemode
14 > <my mimalloc program>
15 > wpr -stop test.etl
16 ```
17 and then open `test.etl` in the Windows Performance Analyzer (WPA).