Notify user when waiting for a thread for a long time
Use less memory to store trace samples