Robert-Hughes / rjrssync

Fast rsync-like tool for incrementally copying files. Runs natively on both Windows and Linux and uses network for communication, to maximise speed when syncing between Windows and WSL filesystems.
MIT License
12 stars 1 forks source link

Add profiling support #5

Closed jslater8 closed 1 year ago

jslater8 commented 1 year ago

Manually profile with profile_this!()

A scoped macro which allows profiling individual functions. It dumps each thread as a separate file.

Also join threads at the right time. Otherwise there are race conditions as the process can exit before the profiling data is written out.