record sleeping threads