File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
IntelPresentMon/PresentMonMiddleware Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -689,8 +689,6 @@ static void ReportMetricsHelper(
689689 chain->mDisplayLatency .push_back (metrics.mDisplayLatency );
690690 chain->mDisplayedTime .push_back (metrics.mDisplayedTime );
691691 chain->mDropped .push_back (0.0 );
692- chain->mInstrumentedDisplayLatency .push_back (metrics.mInstrumentedDisplayLatency );
693- chain->mInstrumentedReadyTimeToDisplayLatency .push_back (metrics.mInstrumentedReadyTimeToDisplayLatency );
694692 } else {
695693 chain->mDropped .push_back (1.0 );
696694 }
@@ -712,8 +710,16 @@ static void ReportMetricsHelper(
712710 }
713711 }
714712
715- if (displayed && displayIndex == appIndex && metrics.mInstrumentedRenderLatency != 0 ) {
716- chain->mInstrumentedRenderLatency .push_back (metrics.mInstrumentedRenderLatency );
713+ if (displayed && displayIndex == appIndex) {
714+ if (metrics.mInstrumentedRenderLatency != 0 ) {
715+ chain->mInstrumentedRenderLatency .push_back (metrics.mInstrumentedRenderLatency );
716+ }
717+ if (metrics.mInstrumentedDisplayLatency != 0 ) {
718+ chain->mInstrumentedDisplayLatency .push_back (metrics.mInstrumentedDisplayLatency );
719+ }
720+ if (metrics.mInstrumentedReadyTimeToDisplayLatency != 0 ) {
721+ chain->mInstrumentedReadyTimeToDisplayLatency .push_back (metrics.mInstrumentedReadyTimeToDisplayLatency );
722+ }
717723 }
718724
719725 displayIndex += 1 ;
You can’t perform that action at this time.
0 commit comments