note: I found this issue while testing. QMap<> is not thread safe, so these stats need to be guarded.