Any operation that gets logged because it took longer than the slow query threshold should include the numYields that happened during that operation.
Currently some operations don't include numYields in their slow query log. For example:
insert test.foo keyUpdates:0 locks(micros) w:6115 177654ms