wasm3 / node-wasm-trace

Instruments wasm files and traces execution
MIT License
32 stars 6 forks source link

Use different tmp file per instance #4

Closed orestisfl closed 4 years ago

orestisfl commented 4 years ago

csvTraceFn always defaults to ".wasm-trace.csv". This means that multiple instances of wasm-trace in the same directory conflict with each other.

With this patch, the tmp module is used to generate a unique file name for each invocation.