google / sanitizers

AddressSanitizer, ThreadSanitizer, MemorySanitizer
Other
11.01k stars 998 forks source link

How to output memory snapshots #1739

Open NanShanJi opened 3 months ago

NanShanJi commented 3 months ago

hello I want to output a memory snapshot in JSON format. How do I need to implement something like this? thank you

[ {type: 'step', line: 1, stacks: [{var_local: [...]}], global: [{...}], heaps: {0x00001: {}}}, {type: 'step', line: 2 stacks: [{var_local: [...]}], global: [{...}], heaps: {0x00001: {}}},

]