Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion IntelPresentMon/Core/source/pmon/RawFrameDataWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ namespace p2c::pmon
metricId == PM_METRIC_BETWEEN_SIMULATION_START ||
metricId == PM_METRIC_PC_LATENCY ||
metricId == PM_METRIC_BETWEEN_DISPLAY_CHANGE ||
metricId == PM_METRIC_UNTIL_DISPLAYED ) {
metricId == PM_METRIC_UNTIL_DISPLAYED ||
metricId == PM_METRIC_INSTRUMENTED_LATENCY) {
flags |= Annotation_::FLAG_NAN_MEANS_NOT_AVAILABLE;
}

Expand Down
7 changes: 6 additions & 1 deletion IntelPresentMon/PresentMonMiddleware/ConcreteMiddleware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -806,9 +806,14 @@ static void ReportMetricsHelper(
if (displayed) {
chain->mDisplayLatency .push_back(metrics.mDisplayLatency);
chain->mDisplayedTime .push_back(metrics.mDisplayedTime);
chain->mMsBetweenDisplayChange .push_back(metrics.mMsBetweenDisplayChange);
chain->mMsUntilDisplayed .push_back(metrics.mMsUntilDisplayed);
chain->mDropped .push_back(0.0);
if (metrics.mMsBetweenDisplayChange != 0) {
// Only push back the mMsBetweenDisplayChange if it is non-zero.
// mMsBetweenDisplayChange will be zero on the first use of the incoming
// swap chain parameter.
chain->mMsBetweenDisplayChange.push_back(metrics.mMsBetweenDisplayChange);
}
} else {
chain->mDropped .push_back(1.0);
}
Expand Down