pstats: Report PStats overhead more honestly

Half the overhead was being missed due to the unfortunate collector placement
This commit is contained in:
rdb 2022-01-30 00:31:27 +01:00
parent c7c1c683da
commit c66ca2ece1

View File

@ -158,6 +158,8 @@ client_disconnect() {
*/
void PStatClientImpl::
new_frame(int thread_index) {
double frame_start = get_real_time();
nassertv(thread_index >= 0 && thread_index < _client->_num_threads);
PStatClient::InternalThread *pthread = _client->get_thread_ptr(thread_index);
@ -178,7 +180,6 @@ new_frame(int thread_index) {
return;
}
double frame_start = get_real_time();
int frame_number = -1;
PStatFrameData frame_data;